script to list all servers in my domain
i need to list all the windows servers in my organization so i was wondering if anyone knew of or had a script that could do this and export it to a csv file.
View ArticleAllow an ActiveX control elements on page
I making some computer related reports using HTML pages with activex elements in it.When its done I call the page with:$ie = New-Object -ComObject InternetExplorer.Application $ie.Navigate2("c:\path")...
View ArticleHow can I use the Get_ADgroup cmdlet to filter on specific groups?
I'm trying to extract the users from specific groups Get-AdGroup -Filter {('Name -like "MyCo *Admin*"') -or (Name -like MyCo Helpdesk"')}This works: Get-ADGroup -Filter 'Name -like "MyCo *Admin*"'I...
View ArticleClear Disabled users Organisation filed and Address field
Hello,We still do have Windows 2003 R2 Domain controllers and We need to clear Disabled users organisation filed like manager, Department and Address field is there any script available for...
View ArticleBatch file gives error "is not recognized as internal command.." after first...
For every batch file I create, I receive the same error displaying after only running the first character in the file: ' d' is not recognized as an internal or external command, operable command or...
View ArticleGet specific data from text file
I have common configuration file with lots of strings in it, such as:Get-Content c:\testfile.txt[password]=pa$$w0rd [user]=Adminstrator [database]=secretdatabase [connectionspeed]=123151...
View ArticleTimeout command
Hi, I have a script running on windows 2008 r2 to wait for 1 hour for an external file before this script can proceed. However, the script just proceed without going to sleep. This is the...
View ArticleChange definition for a DataTable
Hello,I have a DataTable and it has certain columns with "Double" data type. I am out putting the DataTable by using Out-DataTable found at...
View ArticleWMIC BIOS CREATE
Hi,A couple of questions although the second is only valid if the first answer is yes!Am I right in thinking I should be able to set BIOS parameters using WMIC BIOS CREATE? For example a replacement...
View ArticleChecking multiple service status for one server using Function and Workflow
Hello,I have a function that will check the list of service status for one machine. I am calling this function using a Workflow. For some reason, I am not getting any output. Please advice. Thanks in...
View ArticleWriting DNS zone file in powershell
Hi I currently have a code in classic ASP, creating zone files from a MSSQL base. Now wanted to write this over the PowerShell script. Have some examples of how such files can be created from...
View ArticlePowerShell text to secure string without using read-host
I've made several form objects with powershell and I want to have one of its textboxes containt the password data so I can then place it to the registry key. The thing is I would like to keep it there...
View ArticleScripting Newbie Question
Hi everyone, I am a complete VBS scripting newbie, I am trying to get my head around what different parts of a script are actually doing & why. As I am hoping this will help me to understand what I...
View ArticleScript Required
Hi All,I need a script that will perform the followingWritten as Batch, VBS or PowershellInterrogate remote machine from a text file and return folder sizes of certain folders stipulated in...
View ArticleScript To Pull MemberOf & List The Group Type
So this is my first script, i need it to get a list of all the groups that the target is a member of and what the group type is. What actually happens is the group type for the target gets repeated...
View ArticleNeed a script to extract and copy .jpgPhoto from Active Directory user accout...
There may be other ways of doing this but it seems like if this could be accomplished in a script it would make it easier for everyone. I want to capture a user's handwritten signature, either on paper...
View ArticleFiles cannot access because they are used by another process
I am trying to delete some files in:C:\inetpub\wwwroot\my_site\Under my_site, there are many files and folders, including bin folders which has some .dll files. As soon as I run the script, I get an...
View ArticleUncheck Password Never Expires for All Users in AD
Hi,All accounts in AD when created Password Never Expiers was selected and nowi wana implement a password polciy, how can i remove the check from passwordnever expires on all user in AD at once?Thanks...
View ArticlePowerShell - Bulk Clear-ADAccountExpiration
Error Message: Cannot Validate argument on parameter 'Identify'. The argument is null. Csv filesamAccountNameTst_Posh1Tst_Posh2Import-Module ActiveDirectory $count = 0 $UserId = Import-Csv...
View ArticleHow to export data to multiple csv files?
Hey Scripting Guys,As stated by the name I'm a novice at scripting. Typically I'm able to resolve most of my scripting challenges by reading through your site or scouring the internet. This challenge...
View Article