How to recover from accidental VM role removal in Hyper-V Failover Cluster...
HelloMy VMs are still available in Hyper-V Manager but they are no longer available in Cluster Manager. I am curious if there's a way to move them back into the Failover Cluster Manager while retaining...
View ArticleIs it possible to clear registry data of multistring type using reg.exe?
Post removed from this forum, to repost at Windows forum.
View ArticleGet-ADGroup returning over 3000 results
Folks, I am working through after taking on AD for my company. We have a huge list of unused groups, which need to be culled before we can look at moving users and groups to another domain.I created a...
View ArticleHow to add user to one to many groups in Active directory using powershell
Hi AllI am working on a script to create a user and based on user type i would like to add that user into 2 to 3 groups . At the moment i have 3 groups e.g domain users, Developers, tester, $NewUser =...
View Articlehow do I get just the homepath?
I have this code: $user = 'MyUser' $getU = Get-ADUser $user -Properties homedirectoryIt works but it returns a lot of data, DistinguishedName, GivenName, etc...etc.... and it returns HomeDirectory....
View ArticleCreating a centralized Help distribution folder - update-help and save-help
I´m trying to create a centralized Help distribution folder i´ve created and shared a folder: c:\update-help$, sahred for everyone, readin a central machine, the sheduled task, running evgery...
View ArticleVB Script - Clear & Save Event Logs
Hi All, Very new to Scripting and have found this on the web which works great on Server 2008 & Server 2003. However, it does not work on Server 2012.. Any idea what could be wrong?Also this does...
View ArticleResetting Home Drive Permissions PS Script
Hey scripting guys! I have another client with messed up home drive permissions. The root folder had domain users - read / write NTFS permissions, so when ever a users home folder was created, it also...
View ArticleHow to Use For loop or while loop in powershell
Hi All i am new to powershell and trying to work around with for loop or while loop. I am using the following script $FirstName = Read-Host "Please Enter First Name"...
View ArticleReplace does not work
Hi,I need to replace all characters between 1 and 31 (ASCII) for space in a file.I created a script to test but it is not working (I tried two alternatives to replace).$a =...
View ArticleRemove Item from an Array in Power Shell
Hello Guys i have a simple but driving my crazy question:in power shell i did the following$a = 1,2,3,4$a1234 now the question is: if i want to Remove number 3 for example from that array, how can i do...
View ArticleVBScript Help
New to VBScriptingI need to create a VBScript that will read a text file then search another file.Once the value is found it will write the value plus two corresponding field to an output fileData...
View ArticleHow can I parse GPO settings and get the GPOApplyOrder?
I have created a script that will search all GPO's in the domain and parse only those which have Drive Map settings and writes the information to a .csv file. I have tried to figure out a way to get...
View ArticleI need a script or a command that can find the DCs those were...
I need a script or a command that can find the DCs those were created\promoted recently in a domain. This is for the automation purpose. Somehow Im unable to move further with the below script, Please...
View ArticleScript to Open XLSX, then Save as HTM
Hello, I'm a bit new to scripting. We have a spreadsheet where we keep inventory. It is Excel 2010 (.xlsx). We also have an internal (IT) "info" web where I would like to be able to click a link to...
View ArticleWhy Do I get different result when Run as Admin to Standard?
Why when Running this script to copy from the "config64" folder (if files exist)(if not copy from "config32") if works correctly when running Batch file normally (copies the config64), but using the...
View ArticleRemove duplicate values in a single Excel cell
I have a spreadsheet with hundreds of rows. In column N, the contents within most cells contain duplicate values which are separated by a new line <Alt+Enter>. For example:Cell N2...
View ArticleBatch file extracting all files from nested archives
I have managed to leverage a powerful forfiles command line utility with the mighty 7z compression program.Below is a simple batch file extracting all files from nested archives hidden at any depth...
View ArticleExecute a batch file on a remote PC
Hello,I have a powershell script that I would like to exceute several batch commands on a remote computer. I first need the script to change to the network drive on that remote computer then execute a...
View ArticleFolderdiscover.vbs Script error : Expected statement
Hi All,I am getting Expected statement error at Line1 char 1 while running the below script . Can you Please help me with the resolution.- <Configuration>...
View Article