@Tom-Elliott i’m testing the ps script, but i cant understand why it could works better than a batch script which make the same thing
Posts made by plegrand
-
RE: snapin and batch script
-
RE: snapin and batch script
@Avaryan then i use your ps script as a powershell template into snapin ?
thanks i try -
RE: snapin and batch script
@Avaryan As you can see , i need to mount the share and execute a command which is inside this share…
Then i thin it’s not possible ? -
RE: snapin and batch script
@Tom-Elliott Here is what i need to do and which doesn’ works :
net use * /delete /y >> %tmp%\Update_Windows7.log 2>&1 net use z: \\samba\wsus$ "my'password" /user:samba\administrateur >> %tmp%\Update_Windows7.log 2>&1 z:\wsusoffline\client\UpdateInstaller.exe >> %tmp%\Update_Windows7.log 2>&1 net use /delete * /y >> %tmp%\Update_Windows7.log 2>&1
UpdateInstaller.exe isn’t launched
-
RE: snapin and batch script
@Avaryan it’s for use WsusOffline which is installed on a samba share \samba\wsus
then i need to mount the wsus share , launch a command (wsus command) dnd then umount share. -
RE: snapin and batch script
@Tom-Elliott the user who established the mount => You means system user ?
-
RE: snapin and batch script
@Tom-Elliott I understand that is System User who mounted the point but i’m loged as administrator. It’s not enough to use the share ?
I don’t use GPO’s.
Have you got an idea on how mount a share via snapin ?@Avaryan I think it will be the same with power shell
thanks for your help
-
snapin and batch script
Running Version 1.3.5
SVN Revision: 6067
Client 0.11.11
Debian stableHello,
here is a piece of code which doesn’t works from snapin :
net use * /delete /y >> %tmp%\Update_Windows7.log 2>&1 call net use z: \\samba\wsus$ "my'password" /user:samba\administrateur >> %tmp%\Update_Windows7.log 2>&1
(note the " ’ " into the password)
This code works fine from the command line, but from snapin, the drive is displayed with a red cross as it was disconnected, and when i click on it, it says that the name or password is wrong. As i said before this code works fine from command line.
An idea for this problem ?
Thanks for your helpIt seams that the problem is because the script is launched as system user.
Is there a solution to solve that ? -
RE: Wrong Image size in web interface
@Tom-Elliott said in Wrong Image size in web interface:
systemctl -l status FOGImageSize
systemctl -l status FOGImageSize
● FOGImageSize.service - FOGImageSize Loaded: loaded (/lib/systemd/system/FOGImageSize.service; enabled) Active: active (running) since ven. 2017-05-12 14:32:36 CEST; 5min ago Main PID: 12288 (FOGImageSize) CGroup: /system.slice/FOGImageSize.service ├─12288 /usr/bin/php -q /opt/fog/service/FOGImageSize/FOGImageSize & └─12289 /usr/bin/php -q /opt/fog/service/FOGImageSize/FOGImageSize & mai 12 14:32:36 Fog systemd[1]: Started FOGImageSize. mai 12 14:32:38 Fog FOGImageSize[12288]: du: impossible d'accéder à « /home/images/PORTGLT650G2 »: Aucun fichier ou dossier de ce type
The last error is normal there is no directory PORTGLT650G2, i have to remove image in web interface
-
RE: Wrong Image size in web interface
@Tom-Elliott
For the moment i prefer to keep the latest stable version.
There is no errors into fogimagesize.log. -
RE: Wrong Image size in web interface
@Tom-Elliott
i restarted FOGImage service which is present in 1.3.5 without successBut as you said :
“this element has no impact on the functionality/usability of the images in question.”No problem for me
-
RE: Wrong Image size in web interface
Hello Tom,
this the size on client, but the size on serverFOG Configuration => Fog Settings => General Settings => FOG_FTP_IMAGE_SIZE (on)
is wrong also
Then, what is the meanings of these informations ?
-
Wrong Image size in web interface
Running Version 1.3.5
SVN Revision: 6067
Client 0.11.11
Debian stableHello, i’ve got a problem when i look into image management on the web interface.
I cant understand the difference between the informations on the web interface and the image size on the server.Here is what i can see on the interface :
IUT-206 - 32
default: Windows 7
Single Disk - Resizable
Everything 4.03 MiB Partclone Compressed 2016-07-05 08:51:33IUT-206-Prof - 36
default: Windows 7
Single Disk - Resizable
Everything 4.04 MiB Partclone Compressed 2016-07-04 17:09:35IUT-221-Prof - 37
default: Windows 7
Single Disk - Resizable
Everything 6.25 MiB Partclone Compressed 2016-07-04 15:19:22And on the server itself :
ls -alh IUT206 total 7,0G drwxrwxrwx 2 fog root 4,0K juil. 5 2016 . drwxrwxrwx 33 fog root 4,0K mai 2 14:40 .. -rwxrwxrwx 1 fog root 2 juil. 5 2016 d1.fixed_size_partitions -rwxrwxrwx 1 fog root 1,0M juil. 5 2016 d1.mbr -rwxrwxrwx 1 fog root 190 juil. 5 2016 d1.minimum.partitions -rwxrwxrwx 1 fog root 15 juil. 5 2016 d1.original.fstypes -rwxrwxrwx 1 fog root 0 juil. 5 2016 d1.original.swapuuids -rwxrwxrwx 1 fog root 8,2M juil. 5 2016 d1p1.img -rwxrwxrwx 1 fog root 7,0G juil. 5 2016 d1p2.img -rwxrwxrwx 1 fog root 190 juil. 5 2016 d1.partitions ls -alh IUT206Prof total 7,0G drwxrwxrwx 2 fog root 4,0K juil. 4 2016 . drwxrwxrwx 33 fog root 4,0K mai 2 14:40 .. -rwxrwxrwx 1 fog root 2 juil. 4 2016 d1.fixed_size_partitions -rwxrwxrwx 1 fog root 1,0M juil. 4 2016 d1.mbr -rwxrwxrwx 1 fog root 190 juil. 4 2016 d1.minimum.partitions -rwxrwxrwx 1 fog root 15 juil. 4 2016 d1.original.fstypes -rwxrwxrwx 1 fog root 0 juil. 4 2016 d1.original.swapuuids -rwxrwxrwx 1 fog root 8,2M juil. 4 2016 d1p1.img -rwxrwxrwx 1 fog root 7,0G juil. 4 2016 d1p2.img -rwxrwxrwx 1 fog root 190 juil. 4 2016 d1.partitions ls -alh IUT221Prof total 11G drwxrwxrwx 2 fog root 4,0K juil. 4 2016 . drwxrwxrwx 33 fog root 4,0K mai 2 14:40 .. -rwxrwxrwx 1 fog root 2 juil. 4 2016 d1.fixed_size_partitions -rwxrwxrwx 1 fog root 1,0M juil. 4 2016 d1.mbr -rwxrwxrwx 1 fog root 190 juil. 4 2016 d1.minimum.partitions -rwxrwxrwx 1 fog root 15 juil. 4 2016 d1.original.fstypes -rwxrwxrwx 1 fog root 0 juil. 4 2016 d1.original.swapuuids -rwxrwxrwx 1 fog root 8,4M juil. 4 2016 d1p1.img -rwxrwxrwx 1 fog root 11G juil. 4 2016 d1p2.img -rwxrwxrwx 1 fog root 190 juil. 4 2016 d1.partitions
What could be the problem ?
Thanks for your help -
RE: Hostname Changer failed
@Jaymes-Driver
Yes everything works fine, it’s just as you said a very minor issue.
It was for information only.
Thanks for your help -
RE: Hostname Changer failed
@Jaymes-Driver
Just for information, may be i should start an other thread but when i launch a deploy task for a group I’ve got this message :Note “Array”
Is it normal ? -
RE: Hostname Changer failed
The problem was the client version. (old version: 0.9.12)
I had to install the new one on each computer (0.11.9), then reboot each computer.
Then “reset encrypted data” on the group
Now it works fine.
I thought that once there was a new version on the server the client updated “alone”.