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

Formatting output

When I run this part of my script#Gets the LastLogon from each DC, turns into a readable output, and the replicated lastLogonDate for the user that is currently $Exists in a ForEach...

View Article


Friday Fun: A Random PowerShell Console

This week I thought we’d have a little fun with the PowerShell console and maybe pick up a few scripting techniques along the way. Today I have a function that changes the foreground and background...

View Article


Introduction to the PoshSec Framework

In March of 2013 I had the desire to create an open source Security Information and Event Management system, also known as a SIEM. I had wanted to create something for small businesses or businesses...

View Article

The Rise Of The Cloud Administrator

One of the significant developments emerging as a result of cloud computing and software-defined infrastructures is a blending of the system administrator and network administrator roles. With this...

View Article

Remotely Run PowerShell on a Cluster

Q: I'm trying to remotely run PowerShell commands on a node in a cluster, but the commands aren't working because of an authentication problem. Why?A: When a PowerShell command is executed on a remote...

View Article


Running Windows PowerShell scripts

Few notes before, I wrote about finding the HP product number of any of your HP servers using PowerShell. First time, when I tried to do this, I double-clicked a .PS1 file (.PS1 being the file...

View Article

Adding registry value names and value

I'm trying to implement a command I normally run in batch into PS. I'm a beginner when it comes to PS and need some assistance. Basically, during the logon process, among other things, this registry...

View Article

out of memory on one server

When I ran the following code, it errored on out of memoory, but succeeded on other servers. It failed on "ServerL001", the server has 28 GB available memory. What is the problem on this...

View Article


Import multiple PST files to archive database

I need to create some script for import pst users archives to EXCHANGE 2010 sp1 database.Mail archives stored on single file server \\FILE-SERVER\PST\%Username%\An amount and name of files is different...

View Article


Disable Remote PowerShell in Office 365

Sometimes there arises a scenario where you may want to disable remote PowerShell access for your users in Office 365. The main reason for doing so would be to prevent rogue admins, users, or even...

View Article

Using PowerShell to Manage Windows Azure SQL Databases

In our recent articles published on this forum we have been discussing characteristics of the Microsoft Azure SQL Database offering. So far, we have been dedicating our attention to the process of its...

View Article

Azure Traffic Manager External Endpoints and Weighted Round Robin via PowerShell

At TechEd North America, we announced Azure Traffic Manager support for endpoints external to Azure.  We are happy to announce a further enhancement, adding support for weights when using round-robin...

View Article

Create Single Text File with Variables from CSV File

I am needing to create a single text file that has 1251 occurrences of the following:DECLARE @return_value intEXEC    @returnvalue = [dbo].[sproc_x_y_z]@providerassetid = N'$asset',@providerid =...

View Article


XML - how to get attributes of a property and not just the property text.

I am sure this is simple, but I am struggling to get the attributes of an XML property to be displayed. I can get the property text, but I would like the also get the name or display-name attribute...

View Article

Image may be NSFW.
Clik here to view.

Single Symlink to multiple directories.

Hello,I have been battling with an issue for the last week and thought I would post here for some help.Some background:We have users who use subversion.However some users have their subversion linked...

View Article


how to remove spaces from text?

Hi,  this command write all servers name into TXT file, the problem that after every name the command add blank spaces, how can I remove them?Get-ADComputer -Filter {OperatingSystem -Like "Windows...

View Article

replace characters in string

Hi, I have a text file that contain list of folders in servers like this:server1 c:\ora\oracel\server2 d:\root\oracle\server3 e:\Apps\LApps\oracle\and so on,  I need to change every line...

View Article


Creating Home Drives Based on group Membership

Ok what I am trying to do is create a script that will allow our Help Desk to create Home Directories on the many file servers we have around our organization.  The problem is these file servers are a...

View Article

How to put two elements of a array in one string

Hi,Powershell is giving me a headache today. I need to create a text file (or PDF) and write 6 array's so that there are two arrays next to eachother, and that 3 times. Like this:TITLEArray1...

View Article

Find ad user witch email not equal UPN

How can i find AD user witch email address not equal UPN?I try Get-ADUser -Filter { mail -notlike "UserPrincipalName" } but reasults are strange :(

View Article
Browsing all 8411 articles
Browse latest View live