Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live

Hide a PowerShell console window when running a script?

This is just an example of the code I am using.Powershell#Generated Form FunctionfunctionGenerateForm{######################################################################### Generated On: 7/11/2016...

View Article


One More PowerShell Question

I have been working on a PS script for a while now and feel like its almost done...99% DoneWhich makes it still unfinished in the real world. Here is where I am running into a brick wall. What dose...

View Article


Change Permissions for a common folder within User Home Directory

Let me start by saying I am just now starting to script.As strange as this is going to sound, it the way this business works:Each User has a folder in the Users folder structure.  That folder is...

View Article

Exclude Specific Exchange Database

I am getting the size of my exchange 2013 databases.PowershellGet-MailboxDatabase-Status|selectName,DatabaseSize,AvailableNewMailboxSpace|Sort-object-PropertyDatabaseSizewhich outputs the...

View Article

[datetime] conversion question

Ok, I worked on this at work.....didn't get it.I just spent the better part of an hour trying again at home here.....nothing.I was just curious about this date time conversion, when I query with this...

View Article


powershell script to go cross-domain looking for all VM hosts and attached VMs

Hi, AllIn our AD Forest, we have four domains:Corporate.localDevelopment.localDMZ.LocalQA.localWithin each domain is a series of VM hosts.So I've got this far, in getting the Hyper-v hosts out of...

View Article

Image may be NSFW.
Clik here to view.

Help debugging this script

Script source:https://gallery.technet.microsoft.com/DPM-Tape-List-with-1f9fc697I'm running it on Server 2008 R2, PowerShell v3, against DPM Server 2012 R2. Error:This error is listed in the Q&A...

View Article

Powershell: Create CSV w/Custom Formatted Column

I'm just learning PowerShell, so this is probably going to be an easy one to answer (hopefully!) ...I want to get a list of all directories that contain text that match a particular regular expression,...

View Article


PowerShell: Enabling coloring of text as I type.

So the top PS window is a server (2012 R2) VM that I am connected to via Remote Desktop Connectionand the bottom window is an instance on my desktop machine (windows 10)What I want to know is if I can...

View Article


Powershell to open password protected excel files

Hi,I found this script to read data from an excel and output it as a CSV file.However, when I try to use the script to read a password protected excel sheet, I am getting error messages, which look...

View Article

Powershell save results if records returned

Okay this should be really simple and I am failing to find an answer. Simply I am creating a script that looks at a folder and returns if it has been updated today based on a list. What I want is if a...

View Article

New to PowerShell!

Hello Peeps, I am like day 1 new to powerscripting and wanted some help and guidance on my first powershell script! I wanted to be able to run the following command...

View Article

Mapped Drives ( manually mapped not through a script )

Hello All,In our company we usually map share drives using a .bat script but some users in our company have mapped drives that were manually mapped from their computer.Is there a way to scan the...

View Article


Powershell Remoting, Processes, and EXEs

Alright, I borked my Adobe Reader installs throughout the agency by making a mistake with the software deployment. Tried several things and running the cleaner tool from adobe is the only fix I've...

View Article

Get local admins in PS with more than ONE machine with PowerShell

Hello All,Currently looking to get all local admins on ALL domain-joined workstations. I'm finding a lot of PS to find ONE machine, but I want to scan all machines. This is the one that I found most...

View Article


Why/How Powershell Jobs

Powershell$scriptblock={wmicproductgetname}$computers=#5 computer...

View Article

Bitlocker Status into SCCM Task Sequence Variable

I have a PowerShell script that will create 3 SCCM 2012 Task Sequence variables to check if TPM is Owned, TPM isActive, and if Bitlocker is on. This is the script:Text# create the SCCM tasksequence...

View Article


Adding a timestamp when moving a user to different OU

Hi everyone,I have a script that moves disabled user accounts to a disabled users OU which all works fine. The script is...

View Article

Lookup Table Help

I am creating a lookup table for different printers located in different courthouses. These printers are on individual wireless networks and I dont think a GPO will work. I have made the look up table...

View Article

Hide a Powershell box ? (composed of -ExecutionPolicy UnRestricted)

HelloI have this script below, I didn't manage to hide the powershell. If I add -w hidden the script doesn't...

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>