Microsoft
Software
Hardware
Network
Question : 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.
Code Snippet:
1: 2: 3:
$user = [ADSI]"WinNT://./testuser,user" $user.Fullname="Test User" $user.SetInfo()
Open in New Window
Select All
Answer : Microsoft, Powershell, Windows Server 2008, trying to modify a local user, getttting "Exception calling "SetInfo" ...( Exception from HRESULT: 0x8007007B)"
that works perfectly for me... are you logged in as administrator or using an elevated shell?
Random Solutions
How to set up handhelds to work with direct push exchange 2007 activesync
Call Manager Administration Page/Directory Service Fails, all other IIS HTML pages work?
Toshiba Power Management
Need a routine to find value in Access table and post value on sheet in appropriate cell
DSN Default Database Question
how can I make cluster of servers (apache, mysql,php) using fedora core 4
Freeware program to change resolution of a group of image files
Virus Attack on Domain - Event ID 12294 (SAM) & Event ID 644, 675 = Net-Worm.Win32.Kido
Cannot login to new sql instance
how to make gedit display the control characters if any exist in the file