Hi,
I just want to run a simple command line on a client through the "Run Command Line" feature in SCCM task sequence.
The command should log off the user. I read many article but I still get error! I would be thankful if anyone can help me.
My Command line is : cmd.exe /c shutdown /l /f
The error :
Start executing the command line: smsswd.exe /run: cmd.exe /c shutdown -l -f
!--------------------------------------------------------------------------------------------!
Expand a string: WinPEandFullOS TSManager
Executing command line: smsswd.exe /run: cmd.exe /c shutdown -l -f
=======================[ smsswd.exe ] =======================
PackageID = ''
BaseVar = ''
SwdAction = '0001'
Working dir 'not set'
Executing command line: Run command line
Process completed with exit code 1
PC034: Incorrect function.(1)
Command line returned 1
Process completed with exit code 1
!--------------------------------------------------------------------------------------------!
Failed to run the action: Force to log off.
Incorrect function. (Error: 00000001; Source: Windows)
Thanks,
Bob