Bessemer-HD
asked on
Microsoft, Powershell, Windows Server 2008, trying to modify a local user, getttting "Exception calling "SetInfo" ...( Exception from HRESULT: 0x8007007B)"
I am trying to run the simplest of Powershell scripts in Windows Server 2008.
I an trying to change the FullName property of a local user. This script
works fine on XP (the local user "testuser" exists on the on WS2K8 server I'm
running on):
$user = [ADSI]"WinNT://./testuser, user"
$user.Fullname="Test User"
$user.SetInfo()
When I hit the SetInfo() line, I get this error:
Exception calling "SetInfo" with "0" argument(s): "The filename, directory
name, or volume label syntax is incorrect. (
Exception from HRESULT: 0x8007007B)"
If i do $user.psbase.properties, it dumps the list of properties and values
with the new value reflected, i just cant actually write the info.
Googling had turned up nothing useful.
I an trying to change the FullName property of a local user. This script
works fine on XP (the local user "testuser" exists on the on WS2K8 server I'm
running on):
$user = [ADSI]"WinNT://./testuser,
$user.Fullname="Test User"
$user.SetInfo()
When I hit the SetInfo() line, I get this error:
Exception calling "SetInfo" with "0" argument(s): "The filename, directory
name, or volume label syntax is incorrect. (
Exception from HRESULT: 0x8007007B)"
If i do $user.psbase.properties, it dumps the list of properties and values
with the new value reflected, i just cant actually write the info.
Googling had turned up nothing useful.
$user = [ADSI]"WinNT://./testuser,user"
$user.Fullname="Test User"
$user.SetInfo()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER