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

Trouble Converting from Batch File to Powershell

I have this working as a batch file but when I tried converting to Powershell, my file doesn't transcode like it does in the batch file.  It's supposed to ask 2 input questions, the link to a video and...

View Article


Deploying Azure Virtual Machines from VM Depot using PowerShell

VM Depot is a community-driven catalog of open source virtual machine images. Azure management portal can be used to copy these VM images into “My images” of your Azure subscription. Once we have the...

View Article


Quick Starting Demos with Windows PowerShell

Preparing virtual machines for demonstrations can be a tedious process, compounding this is when virtual machines need to be started or shut down in a specific order.  For example, starting database...

View Article

PLURALSIGHT THE CASE FOR POWERSHELL TUTORIAL-kEISO

kEISO has released PluralSight’s “The Case for PowerShell”.Mark Minasi teaches why you should learn-PowerShell so you needn’t leave-industry.Read More

View Article

Remove-Item in folder\sub-folders

Hi,I wrote this script, delete files from folder and sub folders that older then X days:# set folder path$path = "C:\Temp\"# set min age of files$max_days = "-60"# get the current date$curr_date =...

View Article


Export to CSV into seperate columns

Hey Guys :)I have a script from one of the guys at work that I'm trying to modify, sorry but I'm still a total noob and still haven't had time to do basic powershell training, just flat out doing...

View Article

Get status of an iSCSI target using iscsicsli command

Hello !!I want to display the status of an iSCSI target (connected, inactive, ...) using iscsicli command."iscsicli ListTargets" displays only the name of the different targets without the state. How...

View Article

The specified path, file name, or both are too long.

I try to copy three kind of files to a remote location. I've tested it on my own computer and on a server and everything works fine BUT on the computer I actually should execute this script.I already...

View Article


Managing SQL Server Services with PowerShell

PowerShell provides a command-line shell and scripting language (built in the .NET Framework) especially designed for administrative task automation and configuration management. PowerShell includes...

View Article


Read from CSV and Compare info against AD

Hello,I have a CSV file that I am treating as Master file. Not all of the headers from the CSV are part of a user in AD. The master CSV has the following headers:"Last Name","First Name","Last 4...

View Article

Extract profilepath is empty

Hi,I am trying to list our AD users along with their profile paths however when I run the command below it lists all the users but the profile paths are all empty even though I know that many users...

View Article

Export csv contents

Hi i am trying to remove the unwanted columns from csv.the problem is i am able to get the headers only, finding difficulties in bringing the contents from those columns

View Article

Dynamically Created ToolStripMenuItems

Here is what I'm trying to do:I'm creating a form with a MenuStrip. One of the MenuStripItems is $Env:UserName. The DropDownItems of that MenuStripItem would need to be dynamically created, based on a...

View Article


Help needed to write soap messages

Need assistance in writing SOAP messages is service now. My requirement  is where I would pass the data from service now request item table and later retrieve them into the PowerShell running on the...

View Article

How to access data from Multiple Powershell in local machine

Hi,I m  new to powershell. I a m facing one problem with powershell.I have a script it should open a COM port from one powershell and close COM from another powershell.  I have tried using sessions but...

View Article


TFS 2013 through powershell

Am new to TFS and powershell. with my restless effort i have deployed TFS 2013 and using in GUI.But my management wants me to manage the TFS through powershell. But i dont know how to start with...

View Article

Output result of Get Last Logon.ps1 to csv

Hi All, I'm sure that this is a really easy one but I'm newb to Powershell and its delights and am really struggling. I am trying to output the results of the Get Last Logon.ps1 to a .csv file. This...

View Article


Handling Errors in PowerShell

As DBAs, we're always working on protecting ourselves from problems by disaster recovery procedures like backups, but in our haste to get a script done, we also are prone to forget the same concept...

View Article

The EASY WAY – List objects in specific folder in Configuration Manager 2012...

Last week I saw one blog post how to list specific folder objects and I believe that actually there is much easier way to list the objects in specific folder. First we need to figure out the...

View Article

Piping Get-Acl output to icacls.exe

Hello everybody,my first post here, I'm Luka and I hope to get more proficient with PS.In a production environemnt, I have a messed up folder with inconsistent permissions. I was hoping to be able to...

View Article
Browsing all 8411 articles
Browse latest View live