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

Image may be NSFW.
Clik here to view.

Read-Host collecting multiple values

Hi guys, adding a further function to my ever growing script – this for adding members to a distribution group. The standard format would be something like this if I were to use the built in cmdlets...

View Article


Help running PS Script with “front-end”

Hi /r/PowerShell   I used PoshGUI to help me create what for lack of better wording I’m calling a front-end for a PS script.   I need to be able to give this out for non-it users to run. At the...

View Article


Get-ADComputer results are wrong

I have what should be a fairly simple script where it spits out computers that don’t have a “ManagedBy” user listed. The code is pretty straight forward Get-ADComputer -Filter * | where ManagedBy -eq...

View Article

Help with powershell command

I trying to create a script that will run weekly to move an .mkv file that was created in the last 24 hours to another folder. The current script below will move a .txt file with out issue but not the...

View Article

Script to change a registry entry?

Hello All, We are having an issue with Outlook not allowing the users to open HyperLinks. We found that the solution is to change the following value in the registry: computerhkey_classes_root.html...

View Article


Create Adobe GPO templates with a PowerShell module

submitted by /u/_Emin_ [link] [comments] The post Create Adobe GPO templates with a PowerShell module appeared first on How to Code .NET.

View Article

Sleep until attribute is not null

I am working on a script to enable our Surface Hub accounts. I need the script to wait for Skype to be enabled before I run the Enable-CsMeetingRoom command. Basically I want to check RegistrarPool…if...

View Article

Powershell Core Modules

I am hoping someone can point me in the direction of a list of currently compatible modules with powershell core. I am mostly looking for the microsoft ones such as hyper-v, active directory, and...

View Article


Make combobox item open a link when clicked

Basically what I want to do is have a ComboBox and each item do something when I click it, such as go to a URL or open a path. Example: $form1_load={ Load-ComboBox $combobox1 “Intranet” } When I click...

View Article


Symbolic Link, Hard Link e Junction Point com PowerShell

submitted by /u/SQLCrespi [link] [comments] The post Symbolic Link, Hard Link e Junction Point com PowerShell appeared first on How to Code .NET.

View Article

Regex to remove comment based help.

In an attempt to improve my PowerShell modules, I have been messing around with PlatyPS. It is very easy to generate the markdown and then the external help xml. I haven’t figured out how to remove...

View Article

Monitor hostname for IP change

submitted by /u/amnich [link] [comments] The post Monitor hostname for IP change appeared first on How to Code .NET.

View Article

Changing ODBC connection servername/IP parameter using PowerShell

Hi guys. I need to change alot of ODBC connections – only the servername though. Google gave me this beautiful command Set-OdbcDsn. So this script here: $DsnArray = Get-OdbcDsn -DriverName "SQL...

View Article


Parsing local .html file

I run a cmd called powercfg -energy and it gives a report in an HTML format. I need two numbers from that report the design capacity and last full charge and can not figure out how to do a local html,...

View Article

scripting runas /netonly RSAT

Hello, I manage a few different tenants from a single workstation that obviously can’t be joined to every domain. I connect through a VPN and then typically use runas with a /netonly switch to run...

View Article


Set-Clipboard Inconsistency

I am using Set-Clipboard -append to copy a bunch of text to the clipboard to paste in a ticketing system. When this happens, I get inconsistent results. Sometime all the data that I would like is in...

View Article

Looking for a Powershell script to determine the user of computers in Active...

Hi /r/powershell. I’m looking for a way to determine who is the user/owner from the list of computers registred in our Domain Controller. These computers are both servers and laptops/desktops. I’m not...

View Article


Most simplistic way to mirror physical directories to Sharepoint?

Hey there! I’m trying to create a Powershell process that, when fired, takes any PDF files from physical directories and subfolders, and copies them into Sharepoint. Example: \servernameParentDir lets...

View Article

pull shared mailbox info from exchange

Im still new to powershell but im trying to make a script that will pull shared mailbox info into a csv file. I need to pull the shared mailbox primary smtp address and number of items, mailbox size,...

View Article

Changing text in a legal notice according to variable

Hello, I am trying to setup a script to import GPO’s and to basically setup our servers from one to the next. I’ve made decent progress, just need a little help with this part. What I want to do is...

View Article
Browsing all 8793 articles
Browse latest View live