Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 8583 articles
Browse latest View live

Pop Quiz: Windows Server Active Directory CS Autoenrollment

Applies to the "Configuring Active Directory Certificate Services" objective of Exam 70-640. Read More

View Article


Pop Quiz: Windows Server 2008 R2 Active Directory Defragmentation

Applies to the "Maintaining the Active Directory environment" objective of Exam 70-640.Read More

View Article


Restart 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 Article

Shortcut 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 Article

Active 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 Article


Adding 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 Article

show 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 Article

cant 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 Article


How 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 Article


move 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 Article

HOSTS 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 Article

returning 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 Article

Basics 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 Article


Writing 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 Article

Cybercriminals 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 Article


List 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 Article

how 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 Article


Adding 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 Article

Pass 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 Article

Trying 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
Browsing all 8583 articles
Browse latest View live