Quantcast
Channel: /r/powershell – How to Code .NET
Browsing all 8793 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Hi there r/Powershell! I’d really appreciate some help with a script :)

Hi there so I’m Very new to powershell and am having trouble with the script I am using. It returns “supply values for the following parameters: FileCSV:” My first thought was telling it where the...

View Article


Dealing with .PSD1 files in VisioBot3000 Settings Import

submitted by /u/michaelshepard [link] [comments] The post Dealing with .PSD1 files in VisioBot3000 Settings Import appeared first on How to Code .NET.

View Article


Using pester to make sure your parameters are separated by an empty line

submitted by /u/lazywinadm [link] [comments] The post Using pester to make sure your parameters are separated by an empty line appeared first on How to Code .NET.

View Article

Uploading a file using FtpWebRequest and I want to show a Powershell progress...

Im uploading a file via FTP (using FtpWebRequest) in Powershell and I want to show a progress bar. Simple progress would be nice but adding remaining time and/or speed would be awesome. Here is a...

View Article

Microsoft Releases PowerShell to Linux and OS X!

submitted by /u/kieranjacobsen [link] [comments] The post Microsoft Releases PowerShell to Linux and OS X! appeared first on How to Code .NET.

View Article


Image may be NSFW.
Clik here to view.

[Script Sharing!] Remote Logged On User Script with logoff capability :)

Wanted to share a script I wrote today, its very very helpful for us especially on our Terminal server, to quickly and easily and remotely logoff any user specified by “ID”. This helps me out so much...

View Article

Cant get an alias to work…

new-item alias:aduc -value (Start-Process %SystemRoot%system32dsa.msc -Credential) submitted by /u/DeathBoT [link] [comments] The post Cant get an alias to work… appeared first on How to Code .NET.

View Article

Unable to convert value of system string for network adapter config in PowerCLI

I am attempting to perform a migration from one network to another in vSphere 6.0u2 using Powershell. I have created an identical switch where the port groups match but have ” (1)” at the end of each...

View Article


Help with If statements

I’ve done a bit of searching on google/reddit and can’t seem to find exactly what I need. I am writing a scrip to add users to an OU (I know there are pre-written scripts out there but I would like to...

View Article


SharePoint audit

We are working on a project to audit SharePoint document access. We need to list the document paths and who actually has access to them. I know a little bit about SharePoint and I am fairly...

View Article

[Question] Am I over my head with this Project?

Hello again, Without giving away any information I would like to say thank for this community. Every one of you helped me learn and conquer fear of the shell. Here’s my situation.. my project consists...

View Article

Having some fun with images and PowerShell

submitted by /u/DollarUnderscore [link] [comments] The post Having some fun with images and PowerShell appeared first on How to Code .NET.

View Article

Display content of a txt file off a remote website?

Lets say I have: http://www.example.com/logsfiles/20160825log.txt I want a script that asks me for year, month, and day and it should get the content inside that file and display it on screen. I dont...

View Article


Best way to check a checksum on a remote system?

I’m trying to check a file of a checksum on Linux system versus a file of a checksum on a Windows system. Looking up, sadly even if I install Powershell on Linux there is no way to remotely connect to...

View Article

Creating a simple Port scanner with Windows PowerShell

submitted by /u/frenchitguy [link] [comments] The post Creating a simple Port scanner with Windows PowerShell appeared first on How to Code .NET.

View Article


Get-ADUser

Can someone please help me with my Powershell script. I’m a total noob and am trying to basically create an account (which is fine on it’s own), but cannot seem to be able to attach the Get-ADUser...

View Article

Importing iTextSharp into a script keeps printing ‘True’

I have a script that imports the iTextSharp.dll and creates a single PDF out of each image in a directory and the code looks something like this: # Load iTextSharp and System.Drawing Add-Type -Path...

View Article


.PST with contacts converted to .CSV

I am starting a script to grab the contacts from Outlook for multiple users and uploading them to a Sharepoint list. To clarify a bit, these are personal contacts and not members of the GAL. I can get...

View Article

Script to check for last windows updates

I’ve written the following script to check for the last time users ran windows update (the OUs and whatnot are fine, just putting in secret for the sake of anonymity) Get-AdComputer -SearchBase...

View Article

ConvertTo-Base64

Function to encode your command. Maybe someone has a use case: https://github.com/BornToBeRoot/PowerShell/blob/master/Documentation/Function/ConvertTo-Base64.README.md submitted by /u/k3ks [link]...

View Article
Browsing all 8793 articles
Browse latest View live