Invoke-command icacls on a remote machine
ok bit complicated explain try best
i running powershell script machine has novell client installed causes issues setting windows file permissions on network share hosted on linux samba share. cant use get-acl errors not recognize unix users , groups. solution use icacls.
icacls not seem work form machine because of novel client
what want use invoke-command -computername server1 -script block{icacls.exe}-cred mydomain\me
but when access denied \\samba\share
so solution write text file on server1 has scheduled task run every 5 minutes checks text file , if there text run command works fine messy if server down or task stop running task running same account mydomain\me
i remember reading awhile ago permission network share when using invoke command network share need credentials, these not passed on when using invoke command
i thinking of using runas dont think can spefify password
anyway still use invoke command know how can work
ok bit complicated explain try best
i running powershell script machine has novell client installed causes issues setting windows file permissions on network share hosted on linux samba share. cant use get-acl errors not recognize unix users , groups. solution use icacls.
icacls not seem work form machine because of novel client
what want use invoke-command -computername server1 -script block{icacls.exe}-cred mydomain\me
but when access denied \\samba\share
so solution write text file on server1 has scheduled task run every 5 minutes checks text file , if there text run command works fine messy if server down or task stop running task running same account mydomain\me
i remember reading awhile ago permission network share when using invoke command network share need credentials, these not passed on when using invoke command
i thinking of using runas dont think can spefify password
anyway still use invoke command know how can work
i'd guess problem credentials not being passed remote session. have set credential delegation wsman?
http://msdn.microsoft.com/en-us/library/windows/desktop/ee309365(v=vs.85).aspx
Windows Server > Windows PowerShell
Comments
Post a Comment