Send-MailMessage : Unable to connect to remote server Line 1 character 17...
After running below code Send-MailMessage -to "c-druparel@pa.gov" -from "c-druparel@pa.gov" -Subject " Test message" -Body " Test message" -SmtpServer" 172.18.183.66"If you run into error given...
View ArticleScripting an automatic AD controller and forest without user interaction such...
Hi:I have a basic script as follows# # Windows PowerShell script for AD DS Deployment # Import-Module ADDSDeployment Install-ADDSForest ` -CreateDnsDelegation:$false ` -DatabasePath "C:\Windows\NTDS" `...
View ArticleReplacing Text in Doc via VBScript w/o Error
Hi, all! I have a script to replace text from an INS file, but I need it to not display an error AND end the wscript.exe process if it errors out, like when the path is not found on certain operating...
View ArticleRDP
Good morning,I have a query with regards to RDP. I have nearly 50 stations that I need to log on to everyday. My organization does not allow to use any tool to save the credential to log on to the...
View ArticleEnter value of a Input box only the first time a script is run
Hello. I have a script that sends an email of some databases from different vessels. I have created a VB dialogbox which you enter the vesselname and this is used in the subject field of the mail. But...
View ArticleDialog box for adding printers
I'm just trying to create a script which I'm not 100% sure if it will work with VBS. There is already a script in place which selects their default printer depending on a user group but for some I...
View ArticleAutomating AD
Hi, I am new to powershell and I am working on a side project to automate account creations on the domain from a feeder file that i think will be in XML format. Any suggestions where to start when...
View ArticleAccessing the group description trough powershell
Hi everyoneI'm pretty new to powershell scripting and was wandering if there is a way to access the group description of a security group in active directory.What I tried for now is the following$Test...
View ArticleOpen CMD using VBScript at school
HiI want to open CMD at school but I can't use notepad to save a BAT file and the RUN BOX is blocked. I have been told by a teacher that I need to write a VBScript to open it. The problem is that I...
View ArticleAssistance with retrieving "Custom File Properties" via Powershell
Morning,I am attempting to identify which workstations in our environment have a certain file and version. The file info I need is only available under custom properties. The following is what I have...
View ArticlePowershell script to manipulate .csv file
I am, by no means, a powershell guru but I want to learn. Here is the issue. I have one .csv file that contains IP addresses from various servers. Which I created from this scriptGet-ADComputer...
View ArticlePowershell Noob - Path, File errors
Hello, below is the code for a simple PS script Im working on. I am a serious beginner so I know the code is clunky but I cant see why its not working and was hoping someone here could take a look and...
View ArticleEmail script output to logfile
Hello people ,I am fairly new to this language and has gotten good help from you guys. I have written a script (with some help) to email several files in a folder. This works great. But since this...
View ArticleHow do I create a pop-up batch file for "wmic bios get serialnumber"
I would like to create a batch file that I can send out to all my users that will collect their serialnumber, and possibly computer name as well.How would I create a .bat that incorporates "wmic bios...
View ArticleGet-ADUser Script Runs but issues error command before returning all results
Greetings;I am running Windows Server 2008-R2 and try to execute a PowerShell command as follows:I am trying to locate user objects that have been inactive since September 1 and do not have any...
View ArticleEncasing Split Variables in "" & Read-Host in “”
Hi All,I have run out of time and need some help with my Script as the work is now due to be completed, can someone please help me with the last two pain points.Stop the header of a CSV being...
View ArticleHow to embed flash video in HTA Application
How to embed flash video in HTA Application?
View ArticleActiveDirectory PowerShell Imported Remote Module issue
I am having an issue with passing variables to the filter parameter to functions like Get-ADUser. When I run$a = 'AccountNameHere'; Get-ADUser -filter {samaccountname -eq $a}on a computer that has the...
View ArticleRisk of using a if in a try catch sentence of powershell
Hi everyoneI'm currently working on a LDAP query to lookup every user of my company who are affected by some of my GPO and so my querry returns all of the user who are member of the group in my OU. My...
View Article