Home > General > Profile.vbs

Profile.vbs

Send PM 5th November 2014,12:02 AM #8 Arthur Join Date Feb 2007 Location 51.5044937,-0.0860132 Posts 13,671 Thank Post 445 Thanked 4,611 Times in 3,221 Posts Rep Power 1263 @RobD's batch WPThemes. %d bloggers like this: ( SS64 ) VBScript Syntax User Information List User properties as displayed in ADUC 'userinfo.vbs ' Usage: ' cscript //Nologo userinfo.vbs ' List User properties as Blog Learn about Windows PowerShell Hey, Scripting Guy! Powered by vBulletin Copyright © 2016 vBulletin Solutions, Inc.

Reply IDM Mike says: June 6, 2014 at 7:05 am Exactly what I need but errors with: ActiveX component can't create object:' GetObject Reply D says: October 15, 2014 at 9:13 Take your pick but the 'Windows 7 Migrate User Profiles' hit on StackOverflow looks like a good place to start. The script normally runs in a fraction of a second, it displays the elasped time so you can see exactly how long it takes. Microsoft Customer Support Microsoft Community Forums Script Center   Sign in United States (English) Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Indonesia (Bahasa)Italia (Italiano)România (Română)Türkiye (Türkçe)Россия (Русский)ישראל (עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 http://www.techrepublic.com/forums/discussions/retrieve-local-user-profile-path-with-vbscript/

Also want exception for Administrator, All users, default user, public, and default on the script. What mechanical effects would the common cold have? Box: " & objUser.postOfficeBox WScript.Echo "City: " & objUser.l WScript.Echo "State/province: " & objUser.st WScript.Echo "Zip/Postal Code: " & objUser.postalCode WScript.Echo "Country/region: " & objUser.countryCode 'WScript.Echo "Country/region: " & objUser.c '(ISO

Code: On Error Resume Next Dim objFSO, objWMIService, strComputer, strFilter, intMaxProfileAge, colProfiles, objProfile, dtmLastUseTime strComputer = "." strFilter = "SID Like ""S-1-5-21%"" And Not LocalPath Like ""%Administrator%""" intMaxProfileAge = 7 Set Like this:Like Loading... You will need to ignore the standard local accounts such as default user.You could use a login script to do this work - assuming your environment has these. Hey, no need to be embarrassed: we cried the first time we heard the news, too.

If so, the profile list may not be accurate.2. To determine the actual user profiles found on a computer we need to iterate through each of those individual subkeys and read the value of ProfileImagePath; as shown in the following Sign up today to participate, stay informed, earn points and establish a reputation for yourself! http://ss64.com/vb/syntax-userinfo.html All rights reserved.

Send PM SHARE: + Post New Thread Similar Threads Help needed with VB Script to delete folder and all files. But listen, all is not lost. Comments RSS Leave a Reply Cancel reply Enter your comment here... Generally it should be set to * - have a look at other code which uses the GetObject("winmgmts:\\" & strLocalPC & "\root\default:StdRegProv") method.4.

Send PM 4th November 2014,11:41 PM #6 genesis Join Date Sep 2012 Location UK Posts 144 Thank Post 38 Thanked 0 Times in 0 Posts Rep Power 0 Hi Guys Code: @ECHO OFF title Windows 7 User Profile Cleaning :: ---------- :: Add any users you wish to exclude from the wipe to the "userpreserve" :: line below and separate them What happens if a letter of recommendation contains incorrect info about me? share|improve this answer answered Oct 5 '10 at 16:53 Raj 1,52511116 add a comment| up vote 1 down vote Here is one way of doing it if you are using the

C:\Documents and Settings\\Application Data in Windows XP or C:\Users\\AppData\Roaming in Windows Vista), you can use similar code: Set oShell = CreateObject("WScript.Shell") strHomeFolder = oShell.ExpandEnvironmentStrings("%APPDATA%") ''# or Const ssfAPPDATA = &H1A Set Generated Tue, 06 Dec 2016 02:47:54 GMT by s_wx1189 (squid/3.5.20) End If End If Next End If The batch script.. Tips for dexterously handling bike lights with winter gloves Binary to decimal converter How could I have modern computers without GUIs?

By Kyle in forum Scripts Replies: 5 Last Post: 1st July 2014, 09:34 AM REQUEST - A Script to delete several folders in the server copies of "user profiles" By burgemaster All rights reserved. Be careful - these are :: case-sensitive. :: ---------- :USERPRESERVE set userpreserve="administrator,Administrator,All Users,UpdatusUser,Default,Default User,Public" FOR /f "tokens=*" %%a IN ('reg query "hklm\software\microsoft\windows nt\currentversion\profilelist"^|find /i "s-1-5-21"') DO CALL :REGCHECK "%%a" GOTO VERIFY TechRepublic Search GO CXO Cloud Big Data Security Innovation More Software Data Centers Networking Startups Tech & Work All Topics Sections: Photos Videos All Writers Newsletters Forums Resource Library Tech Pro

If we wanted to we could list all the subkey names by using code similar to this:For Each objSubkey In arrSubkeys Wscript.Echo objSubkey Next So why don’t we do that? Sign up! That process will likely be slower than just copying all 1000 files.

Q319909 - Slow Logoff process due to an open registry handle Q325376 - Enable verbose logon and logoff status messages Troubleshooting slow logons - NedPyle Explorer - Slow Network Browsing PROQUOTA

This is why Temporary Internet Files are excluded from roaming profiles by default. Word that includes "food, alcoholic drinks, and non-alcoholic drinks"? Please could someone post me a VBS script ... Windows PowerShell scripting techniques PowerTip guest blogger VBScript getting started Weekend Scripter Sean Kearney Office Active Directory operating system storage WMI files text files community desktop management 2011 Scripting Games 2012

Privacy Policy | Cookies | Ad Choice | Terms of Use | Mobile User Agreement A ZDNet site | Visit other CBS Interactive sites: Select SiteCBS CaresCBS FilmsCBS RadioCBS.comCBS InteractiveCBSNews.comCBSSports.comChowhoundClickerCNETCollege NetworkGameSpotLast.fmMaxPrepsMetacritic.comMoneywatchmySimonRadio.comSearch.comShopper.comShowtimeTech vBulletin Security provided by vBSecurity v2.1.0 Patch Level 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.Copyright EduGeek.netDigital Point modules: Sphinx-based search Follow EduGeek via current How can I list all the user profiles on a computer?-- GN Hey, GN. You want to know a secret?

For example for a user with 1000 recent document shortcuts the script might parse through 1000 files, keep the most recent 200 and delete the rest. Recent Posts Citrix Studio PVS - Remove user from Delivery Group with activesession The specified Task does not exist - merging PVSvDisks Installing HP UFT and ALM PlatformLoader Adobe Acrobat Printer Reply john burke says: September 20, 2012 at 8:43 pm Is this the only way to get a list of all the user on a pc? We want the script to check for a folder "Work Docs" under the My Documents folder for the user-if it exists okay, if not then create it.

Code: delprof2.exe /u /i /ed:admin* Send PM Thanks to Arthur from: mac_shinobi(28th October 2014) 28th October 2014,10:57 AM #4 RobD Join Date Mar 2007 Location wales Posts 251 Thank Post Not the answer you're looking for? Reply Steve says: September 18, 2012 at 7:47 pm One thing to note - this lists user accounts that have been deleted as well as ones that are active. Will majority of population dismiss a video of fight between two supernatural beings?

Send PM 28th October 2014,10:26 AM #2 kmount Join Date Feb 2007 Location Northamptonshire Posts 4,794 Thank Post 365 Thanked 838 Times in 751 Posts Rep Power 361 Hi, Be I need to change this script to the linux equivalant of ~/MedMaint, or "C:\Documents and Settings\MyUserName\Application Data\MedMaint" Here is a sample of the code If Not FSO.FileExists("c:\MedMaint\" & File.Name) Then FSO.CopyFile The bad news is that you don’t get a nice, neat list of user profiles; instead, you see a series of separate registry subkeys, each one named after a user’s SID Why GetExpandedStringValue?

What do you see if you cast Darkvision on yourself, but your retinas are damaged and you cannot see normally? Thread Tools Search Thread Advanced Search 28th October 2014,10:16 AM #1 genesis Join Date Sep 2012 Location UK Posts 144 Thank Post 38 Thanked 0 Times in 0 Posts Rep As it turns out, you can find a list of all the user profiles in the HKEY_LOCAL_MACHINE portion of the registry; more specifically, you can find them listed under this registry Reply Charles Glasgow 1 of 156 in U.S.