I recall during my powershell training there was a technique or way to have scripts start in order and only start when the first one is completed.
For example. Script A calls Script B. Script A will only continue on with next tasks when Script B completes. Each of these scripts are ps1.
I am...
I am trying to run the command below on multiple computers so I want to use invoke-command. It works fine in powershell and command line all by itself. But when I use invoke command and pass variables the nightmare happens.:
D:\Apache\bin\httpd.exe -f D:\apacheconfig\www.foo.com\httpd.conf -k...
Hi I have this up top. I do not want it to be mandatory. If the user does not have -foo I want the script to continue to the else statement.
param(
[Parameter(Mandatory=$false,Position=0)]
[ValidateNotNullOrEmpty()]
[String]
$foo
)
Even just tried
param(...
Hi Blister this did not work.
I have also tried
if (!($foo -eq $NULL))
{
first
}
else
{
second
}
however it still returns me to the first if statement regardless if I run my script with parameter or not.
Example:
.\myscript.ps1 $foo "hello"
or
.\myscript.ps1
I get...
Hi I am using a parameter called foo which I set to mandatory=$false. This means it is not required. In my script I would like to test if it exists or not and do something if it does.
For example if someone runs .\myscripts.ps1 -FOO valueisgiven the scripts will do something if not just...
Hi all I am new to powershell and have a beginner question. I have a variable that is storing a bunch of strings based on a Select-string command-let I use.
$results | Select-String 'port'
Results in:
IP:port : 0.0.0.0:13125
IP:port : 0.0.0.0:13126
IP:port...
I was wondering if there are key function I should be monitoring on DC? (minus hardware and security aspects)
I have come up with 4 things: monitor key services DNS WINS etc, replication occurring in a timely manner, dns query functioning, ldap functioning (perform query).
The reason I ask is...
I was reading that sometime this might do more harm then good. How does scavenging work do I just flip the switch. What if I have host A records that I have entered manually will those be lost?
Does AD integrated DNS require it to be installed on the same machine as the DC? That is the point I was trying to make. Sorry if I was confusing.
Thank you for the response.
Hello does DNs have to be installed on a domain controller for AD integrated dns to work?
We have 3 DNS servers all on domain controllers that are AD integrated. I am trying to add one more on server without AD and the option is greyed out. Very strange, not sure what to think of it.
Thank you.
Thanks for the links pagy.
I have read some of it. And it seems there are two ways of securing wireless.
a) certificate services
or
b) PEAP
I am using peap which seems to be working ok.
Yes I am using DHCP at multiple locations and however I can not get an ip when connecting to the IAS...
Hello all. I have successfully setup a wireless access point using WPA with AES encryption. As a test I created a self signed server certificate on the server with Internet Authentication Service installed on it. I then installed the certificate on a client (then went into the wireless...
Hello all. I just popped out a drive in a old server. no name.
The scsi drive is a Quantum Atlas 10K III
some other info on the disk
SCSI Ultra160/LVD/SE
also has a picture that shows SCA and 68 PIN WIDE SCSI.
Does anyone know what kind of disks I need. I would like to purchase 2 more 320...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.