Pop Quiz: Windows Server Active Directory CS Autoenrollment
Applies to the "Configuring Active Directory Certificate Services" objective of Exam 70-640. Read More
View ArticlePop Quiz: Windows Server 2008 R2 Active Directory Defragmentation
Applies to the "Maintaining the Active Directory environment" objective of Exam 70-640.Read More
View ArticleRestart server & then email
I am trying to write a script to restart a server and then email when the restart is done.I started with this basic command: Restart-Computer -ComputerName <string[ ]>,But I can't get it into a...
View ArticleShortcut Properties
I found this code on this site and it works. $shell = New-Object -ComObject WScript.Shell$Location = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"$shortcut =...
View ArticleActive directory backup & recovery by powershell
Hello I must write a powershell script, which must backup and recovery an active directory by powershell script (with GUI). Do you have any ideas? Can you help me?Thanks in advance.Best regards winkid
View ArticleAdding PowerShell Script to Primalform
I am trying to add a PowerShell script into a PrimalForm GUI and seem to be having difficulty getting it work. The script allows you to update Active Directory description on multiple machines listed...
View Articleshow pop up message during script running
Is possible to show pop up message during script running without buttons?For example:1. scheduler run script2. current logged user get pop up information: "backup in progress do not turn off your...
View Articlecant get expected output.. any suggestions?
$computers=get-content"C:\scripts\class-lists\Test-Lab-Computers.txt"foreach ($computerin$computers){invoke-command-computer$pc-scriptblock {get-item c:\drc882c.log | format-table-property @{...
View ArticleHow to script out data from a table with Powershell
Hi,I have few lookup tables I need to script data for in order to rebuild an empty database. I've already developed the scripts for the database schema.For example I have a table User:UserId,...
View Articlemove mail to a pst
I don't know if I am in the right place but here goesI found this script on the goolge to move emails in Outlook to a PST. I get an error and I am clueless on how to get to to work. Here is the...
View ArticleHOSTS update
I want to share this code to update the HOSTS file with a windows task at regular times.Note.- Hosts addresses can change or need password in the future, so take care. This code needs a help file...
View Articlereturning and referencing remote powershell variable results
Hi, I'm very new to powershell so looking some assistance. I am trying to run remote powershell script to check health of or VDI enviroment using Citrix Commandlets. (I am implementing the script on...
View ArticleBasics of Writing a PowerShell Module with C#, Part 2: Debugging
In this second part of the series on writing PowerShell modules in C#, we will cover how to enable basic debugging features in our module. We will cover how to set up a project in both the Express and...
View ArticleWriting a PowerShell module in C#, Part 1: The basics
In this series we will cover the basics of building a Windows PowerShell binary module using C#. In the first part of the series we will build a module with just one cmdlet called Get-Salutation that...
View ArticleCybercriminals use sophisticated PowerShell-based malware
Cybercriminals have been developing increasingly sophisticated malware that make use of Windows PowerShell scripts in an attempt to fly under the radar.Read More
View ArticleList compile errors using PowerShell
I always make sure that any compilations are logged. You do this by opening Tools, Options, Development, Compiler and check the "AOT log"-checkbox.Read More
View Articlehow to copy new and updated files to more than one location
My case is as below I had SourceFoler = d:\temp\SourceFolderTargetFoler = d:\temp\TargetFolderOtherFolder = d:\DiffernceFolder I want to copy new and updated files from source folder to target...
View ArticleAdding Global group from one forest into a Domain Local group in another...
Hi everyone... I've been trying to create a script to nest groups from one forest into another forest. I can do it with no issues from the ADUC. I've read some articles on what they suggested to...
View ArticlePass variable into Invoke-Command for remote execution
I am trying to copy a file on a remote computer by executing a script on my local computer. The -Path and -Destination need to be variables.This work:Invoke-Command -ComputerName $server...
View ArticleTrying to run AD report from list of users
I have a list of users that I need to pull information from AD and then output to a file. I am having trouble with a couple of things.1. How do I import this list of users from a txt file and then...
View Article