Showing posts with label Users. Show all posts
Showing posts with label Users. Show all posts

07 August 2014

List of client "Installation Error"

When troubleshooting client health in SCCM 2012, looking into "Push Information" you will find "Last Installation Error".
Here is a list of known errors, to help identifying and solving the issues.




2 The system cannot find the file specified.
5 Access denied.
52 You were not connected because a duplicate name xists on the network. Make sure there is not a duplicate name in DNS and that 2 machines don’t have the same IP in DNS.
53 Unable to locate – http://support.microsoft.com/kb/920852 – cannot connect to admin$ – Computer Browser not started – add File/print sharing to Exceptions in Firewall – turn file and print on.
58 The specified server cannot perform The requested operation
64 The specified network name is no longer available. Source: Windows
67 Network name cannot be found.
86 Network password is not correct? Machine Name <> resolved name.
112 Not enough disk space
1003 Cannot complete this function.
1053 The service did not respond to the start or control request in a timely fashion.
1068 The dependency service or group failed to start
1130 Not enough server storage is available to process this command. Source: Windows
1203 The network path was either typed incorrectly, does not exist, or the network provider is not currently available. Please try retyping the path or contact your network administrator.
An extended error has occurred. Source: Windows
1305 The revision level is unknown.
1396 Logon Failure: The target account name is incorrect. (NBTSTAT -a reverse lookup, duplicate IP address).
1450 Insufficient system resources exist to complete the requested service. Source: Windows
1789 The trust relationship between this workstation and the primary domain failed
2147023174 The RPC server is unavailable.
2147024891 Access is denied
2147749889 Generic WMI failure (Broken WMI).
2147749890 Not found – Source: Windows Management (WMI) – try repair WMI.
2147749904 Invalid class – Source: Windows Management (WMI).
2147749908 Initialization failure – Source: Windows Management (WMI).
2147942405 Access is Denied (Firewall rule? / MacAfee-HIPS?).
2147944122 The RPC server is unavailable. (Dcom is miss-configured for security (http://support.microsoft.com/kb/899965).
2148007941 Server Execution Failed.


Hope this will help you on your way.

20 December 2011

Run as different user

"Run as different user" option is different than "Run as administrator", because you don’t have to elevate. You can run as an admin user, but be running as that user with non-elevated credentials. Also, it supports net only credentials, which Run as Administrator doesn’t.


The Run as different user context menu option in Windows 7 is implemented as an extended menu, which is only displayed if you press and hold the SHIFT key when right-clicking on an executable file or its shortcut.

29 April 2010

Script: List all users in AD in a csv file

This script will list all users in AD in a csv file
Showing this:
SAM navn, Full name, Description, Office, OU placering
in file users.csv, createt in same folder as the script.

I'm using RootDSE, so no need for "hardcoding" domain name.

Scriptet:

' LIST_USERS.VBS
' ver. 1.0 - 070509
'
on error resume next
Set objRootDSE = GetObject("LDAP://RootDSE")
objDomain = objRootDSE.Get("defaultNamingContext")
set objConn = CreateObject("ADODB.Connection")
set objCmd = CreateObject("ADODB.Command")
objConn.Provider = "ADsDSOObject"
objConn.Open "Active Directory Provider"
Set objCmd.ActiveConnection = objConn
objCmd.Properties("Cache Results") = False
strFilter = "(&(objectclass=user)(objectcategory=person))"
strQuery = ";" & strFilter & ";distinguishedName;subtree"
objCmd.CommandText = strQuery
Set objFSO=Createobject("Scripting.FileSystemObject")
objCSVfile = "Users.csv"
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8

if objFSO.FileExists(sUsersLeft) then
objFSO.deletefile(sUsersLeft)
end if

Set objLogFile = objFSO.CreateTextFile(objCSVfile)
objLogFile.Write("SAM Name, Display Name, Description, Office, OU" & chr(13) & chr(10))
Set objRecordSet = objCmd.Execute

Do Until objRecordSet.EOF
strDN = objRecordSet.Fields("distinguishedName")
Set objUser = GetObject("LDAP://" & strDN)
strsAMAccountName = objUser.sAMAccountName
strsdisplayName = objUser.displayName
strDescription = objUser.description
strOffice = objUser.physicalDeliveryOfficeName
strOU = objUser.distinguishedName
arrOU = split(strOU,",")
strOU = ""
for each i in arrOU
if left(i,2) = "OU" then
arrTmp = split(i,"=")
strOU=arrTmp(1) & "\" & strOU
end if
next
objLogFile.Write(strsAMAccountName & ", " & strsdisplayName & ", " & strDescription & "," & strOffice & "," & strOU & chr(13) & chr(10))
objRecordSet.MoveNext
Loop
objLogFile.close
objConn.Close
Set objGroup = Nothing
Set objRootDSE = Nothing
Set objCmd = Nothing
Set objConn = Nothing