Quantcast
Browsing all 21975 articles
Browse latest View live

Encrypt script

HiI am sick of my colleague stealing the codes from my script and claim that as his own work. Is there a way of encrypting the script so he cant view the content of the script but at the same time he...

View Article


Timer Triggered continue in a foreach loop

Hello all,before digging into the script, maybe someone sees something I missed...$range = 1..100 ForEach ($_ in $range){ if ($_ % 7 -ne 0 ) { continue; } $timer = New-Object System.Timers.Timer...

View Article


Question: Email Script lowest rights to execute

I have a email script setup to e-mail users when there password is about to expire. I want to run it with the lowest credentials possible. I don't want them to be a domain admin. Any ideas?

View Article

Using EWS to cancel a meeting in a room mailbox.

This seems like a common occurance at any company but there really doesn't seem to be a solution for it.  In Exchange people can reserve a conference room by inviting it to a meeting and with the...

View Article

Group membership and memberof information

Scenario,We have around 50 Groups each group is nested into differen group or is member of different group.We are building different forest and need that informationNeed powershell script that will get...

View Article


script to export share folder NTFS security permission

HiI got below one script to export share folder permission. But I am not getting where can i define the share folder path in the below script.===============Script=============Function...

View Article

Powershell script to show files that have been modified over 3 years old

I need to see how many files over 3 years have been modifed on a large file share and export it to a .csv file

View Article

Windows Server 2012 AD-DS can not be configured or uninistalled...

Good Afternoon everyone, I am currently trying to promote my 2012 Server to a Domain Controller but when I am at the first step in the setup I get the Error Message (German, Original Message):...

View Article


Pass Complex types as parameter in Remote powershell execution

Hi    I am trying to pass a parameter to a remote script with an invoke-command.    If i run the invoke command with the script in the local computer it´s works, but when i call the invoke-command with...

View Article


Image may be NSFW.
Clik here to view.

Invoke remote comand line tool

I need to invoke a command line tool (imagine cmd or netsh) which can complete and return or remain interactive.If I try Invoke-Command with cmd it returns without and error but doesn't remain...

View Article

Set-ADAccountPassword issues after password reset

I found a wonderful script that allows me to bulk reset users passwords using the set-adaccountpassword cmdlet.  The passwords change just fine but then when I set the user accounts to force a password...

View Article

Adminstrative Center History

I understand that PS save the history per PS-session up to 32767 cmdlets. I know that i can export the history to a .xml file, but...Where is the ADAC history saved?I can see that the history is still...

View Article

error in command line to do a wsus cleanup

Hi,I wanted to make a script to automate cleaning of the wsus.  All my rules work quite good, just on (last) rule gives me a time-out. (i'm fairly new to scripting).  I've been looking to solve it but...

View Article


Powershell Script Quest One Snap-in Slow When Not Logged Into Domain

I have a powershell script that uses the Quest One ActiveRoles Management Shell for Active Directory snap-in.  Scenario 1When I'm in the office, the script runs very quickly (1 min).  No...

View Article

wmi filter only works when negated twice

Has anyone ever saw this before and/or do they know whats causing it?  When i try to run the query with the filter of 10.1.% it doesn't return anything.  But when I negate the filter twice, I am...

View Article


New-PSSession limited to 25

I am trying to start 50 sessions on a server, but once I pass 25 new sessions, I get this error: New-PSSession : [MyServer] Connecting to remote server systemarchi failed with the following error...

View Article

Powershell script to compare AD UserObject Group Memberships in Excel

<# CompareUserGroupMembershipsFromList.ps1 Powershell script to compare AD UserObject Group Memberships in Excel...

View Article


Powershell script to compare AD ComputerObject Group Memberships in Excel

<# CompareComputerGroupMembershipsFromList.ps1 Powershell script to compare AD ComputerObject Group Memberships in Excel...

View Article

PS script to detect Windows version in GPO logon

I've been looking for a way to exclude Windows 7 machines from a GPO logon script that substitutes a local drive letter on our PCs.  The Group Policy Management Editor has a tab for PowerShell scripts...

View Article

NIC Teaming Script Using New-NetLbfoTeam

Hi, I am trying to make a NIC team using a powershell script with the cmdlet New-NetLbfoTeam on a Physical Windows Server 2012 Server Core. When i execute the command PS C:\> New-NetLbfoTeam -Name...

View Article
Browsing all 21975 articles
Browse latest View live