Quantcast
Channel: Windows PowerShell forum
Viewing all 21975 articles
Browse latest View live

how can connect multiple child domain AD users from one child domain domain controller with powershell

$
0
0
Hi Friends

I need to get distinguishedname attribute details of users which are in CSV file

I am using below command to get  this:

Import-CSV testfile.csv | % {Get-ADUser $_.dn -Properties * | select name,SamAccountName,distinguishedname} | Export-Csv userr.csv -NoTypeInformation

Its working fine one domain users but I have listed 3 more domain users in my testfile.csv file

How can I query from other child domain AD and get the user details from one domain controllers of a child domain?

Please help or guide me on this

In short., my concern is how can I query for other child domain users from one child or parent domain to get the data?

Adding domain group to ao local admin group.

$
0
0

I am trying to Add domain group to ao local admin group.

with some googling i am trying to run the following command:

([adsi]"WinNT://./Administrators,group").Add("WinNT://Domain.com/Groups/Group_Name,group")

and getting this error:

Exception calling "Add" with "1" argument(s): "An unknown directory object was requested

What am i missing?

Thanks for the help.

Running Best Practice Analyzer on remote 2008 R2 domain controllers

$
0
0
Hello Powershell World,

I'll start out by first mentioning that I am a powershell rookie so I gladly welcome any input to help me improve or work more efficiently.  Anyway, I recently used powershell to run the best practice analyzer for DNS on all of our domain controllers. The way I went about was pretty tedious and inefficient but still got the job done through a series of one-liners and exported the report to a UNC path as follows:

Enable-PSremoting -Force (I logged into all of the domain controllers individually and ran this before running the one-liners below from my workstation)

New-PSSession -Name <Session Name> -ComputerName <Hostname>
Enter-PSSession -Name <Session Name>
Import-Module bestpractices
Invoke-BPAModel Microsoft/Windows/DNSServer
Get-BPAResult Microsoft/Windows/DNSServer | Select ModelId,Severity,Category,Title,Problem,Impact,Resolution,Compliance,Help | Sort Category | Export-CSV \\server\share\BPA_DNS_SERVERNAME.csv

I'm looking to do this again but for the Directory Services best practice analyzer without having to individually enable remoting on the domain controllers and also provide a lsit of servers for the script to run against. 
 
Thanks in advance for all your help!

Any way to set a short timeout for OpenRead when checking web files?

$
0
0

I have some code to report the size of a file on a website.

$clnt = new-object System.Net.WebClient
$clnt.OpenRead($SourceFile) | Out-Null
$dlfilesize = [int] $($clnt.ResponseHeaders["Content-Length"]/1mb)
$clnt.Dispose()

This works great, most of the time. But some files or hosts cause the process to hang, eventually timing out after several minutes. An example is when I use:

$SourceFile = "http://download.microsoft.com/download/E/2/1/E21644B5-2DF2-47C2-91BD-63C560427900/NDP452-KB2901907-x86-x64-AllOS-ENU.exe"

I'm trying to code around this so that it's graceful, but I'm not having much luck. Is there a way to set a manual timeout interval when using OpenRead?

SQL query in powershell Errors on IIF

$
0
0

Hello,

I have put together a Powershell script from examples online to run a SQL query.  The query came from Access and it seems Powershell has a problem with the syntax.

I'm pretty new to scripting and adding SQL to the equation isn't helping.

Powershell code

$SQLServer = "ServerName"
$SQLDBName = "DataBase"
$SqlQuery = 'MyQuery'

$SqlConnection = New-Object System.Data.SqlClient.SqlConnection
$SqlConnection.ConnectionString = "Server = $SQLServer; Database = $SQLDBName; Integrated Security = True"

$SqlCmd = New-Object System.Data.SqlClient.SqlCommand
$SqlCmd.CommandText = $SqlQuery
$SqlCmd.Connection = $SqlConnection

$SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
$SqlAdapter.SelectCommand = $SqlCmd

$DataSet = New-Object System.Data.DataSet
$SqlAdapter.Fill($DataSet)

$SqlConnection.Close()

$DataSet.Tables[0] | ft -AutoSize

SQL Query

SELECT swName AS Server, swRack AS Rack, swEnvironment AS Environment, IIf([dbo.SW_SERVICE_LVL].[swMonday]=1,"Mon") AS [RebootSchedule], dbo.SW_SERVICE_LVL.swMonBeginTime AS [RebootTime], 2 AS Expr
FROM dbo.SW_SERVICE_LVL INNER JOIN dbo.SW_SPECIALTY ON dbo.SW_SERVICE_LVL.swDiscount = dbo.SW_SPECIALTY.swSpecialtyId
WHERE (((IIf([dbo.SW_SERVICE_LVL].[swMonday]=1,"Mon")) Is Not Null) AND ((dbo.SW_SERVICE_LVL.swGrpResp)="IT Group Name") AND ((dbo.SW_SERVICE_LVL.swRootObjectType)="Server"));


Error given is

Exception calling "Fill" with "1" argument(s): "Incorrect syntax near ')'.

Incorrect syntax near 'IIf'."At line:16 char:1

+ $SqlAdapter.Fill($DataSet)

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : SqlException


check file exists in folder

$
0
0

I would to check file in folder and send name file to my email.  How to use power-shell script

we have files in folder but this file change name everyday. i need to check file and sent to my email every day

Please advise and idea .

changing the entire line whithin of text file via powershell

$
0
0

hi friends

i need an script to select entire line within a text file & then replace the entire line with the line which i specify.

the scenario is:

in all of my clients, there is a text file which contains contents similar to following:

initial content
MyItem = 5
YourItem = 40

final content

two important notes:
the values in front of each item is not the same in my clients.
the initial content & also the final content is not the same in my clients.

for example in some clients, the value in front of MyItemt = 8 and in some others is 37 and so on...

i need to modify the values of the text file in all clients as following:

MyItem = 1

YourItem = 2

in fact i need an script to select anything in front of MyItem = and replace it with the digit 1
and also select anything in front of yourItem = and replace it with digit 2

i spent lots of time working on get-content with replace method & set-content & get-string & set-string but i was unable to achieve it. seems via these tools we can't get this need  :-(

thanks a a lot for any help

Calculate "Business Days" and account for holidays

$
0
0

I have played with Date math based on what I have found for documentation, and adding an arbitrary number of days is pretty easy. But what about adding an arbitrary number of business days? I found a web site that talks about "Next business day", which could be adapted I am sure, but it only accounts for weekends. I want to calculate the date an arbitrary number of business days from a provided date. So, +3 business days calculated from a Monday should produce the date of the following Thursday, and calculated from a Friday should produce the date of the next Wednesday. And calculated from Friday Sept 4, 2015 (Friday before Labor Day) should produce Thursday Sept 10, 2015.

Given that Windows is very business focused, I wonder if there is some nice hidden .NET functionality to calculate business days based on holidays as well? I know, some offices might give extra days off, four day weekends, etc. But those would be edge case enough to be safely ignorable for my purposes. Indeed, even holidays could probably be ignored, but if there is a quick approach I would rather use it. If I would need to code some sort of Exchange calendar scraper or some such, I'll live with just accounting for weekends. ;)


Why does the following example break and not continue

$
0
0

Hello, I have already found a workaround using a different looping technique to complete a task I am trying to perform, but am wondering if anyone could provide some insight as to why the following fails for me.

Say I have a list of computers, in reality my list is large, but for the sake of this thread say I have an array of the names of two pcs that exist in my AD environment:

$computers="computer1","computer2"

Now, say that I only have read access on computer1, but have full access to do anything to the computer2 AD object.  When I run the following command:

$computers | get-adcomputer | remove-adcomputer

It will fail on computer 1, and not continue to delete any other AD objects I have put in the list.  I have tried playing with the ErrorAction variable on the remove-adcomputer command, but that does not seem to do the trick.  Why is the script breaking after the first access denial and not attempting to do the rest of the pcs in the list?  If i run the script against only pcs that I know i have access to modify the AD object, it works without any errors.

Reboot the all servers remotely and get logs of reboot

$
0
0

Hi

I have CSV or TXT file where I have copied all DCs or servers name with reboot timings as well. All servers are running on windows 2008R2 and some of them are on server 2003 r2 as well.

I need to create a script of below requirments.


The script should have the ability to run from a server and execute reboots as per a schedule.


The script should log all of the executions with local time (time on the server where script is running) local server time (time based on the server being rebooted)and success \failure and some kind of proof like an update of the server post reboot.

A nice to have would be if when configuring this automation to reboot a series of machines that it would have the ability to notify members of a DL when a reboot did not occur properly  and or an email of the logs when the reboot schedule has completed.

Please help me or guide me any link to get my requirements.

CSV file format is below



Add-Computer unsecure

$
0
0

Does anyone have an example of using Add-Computer with the unsecure parameter?  I cannot find an example anywhere and have been hacking for over an hour without any luck.

Array / Object properties to Output File

$
0
0

Hey Guys,

     I know this is a very novice question, but I have a CSV file that I imported into an array.

$userobjects = the CSV file in an array

ForEach ( $userobject in $userobjects ) {
Write-Host $userobject.Company
Write-Host $userobject."First Name" $userobject."Last Name"
Write-Host $userobject.address
Write-Host $userobject.city $userobject.State $userobject.Zip `n
}

This outputs the correct information in the right format.  I'm kind of new to powershell so I'm just trying to see how I could save the same exact information into a simple txt file that i can copy/paste.  The out-file command gives me new lines for every input object.  So I was assuming that in order to have out-file work I would have to combine all multiple inputobjects into one string?  I may be wrong on that, but this is just for something simple so I wanted to come here and ask the pros for a quick fix.  Any input will help.

Thanks,


Dan


Using -contains

$
0
0

I've loaded a variable $InList=Import-Csv "D:\somefile.txt"

It has 4 fields Server,Dir,User,Date. I then do an if,  if ($InList.User -contains ($line)) and $line is found.

The question is how do I address Server,Dir,or Date for the value of $InList.User that was found?


Powershell script for when user last used their AD account to login or unlock a computer.

$
0
0

I want to create a method for determining when a users account would expire after 35 days of inactivity.
The issue would be not when they last logged on, as many of our users just lock their machines, but when they last logged on or unlocked any computer in the domain.

I am thinking a combination of last logon with a session unlock parameter.

In the system logs:
Event viewer id for logon unlock is 7.
SessionSwitchEventArg - SessionSwitchReason is SessionUnlock.

Is this feasible?



Interacting with current/open Excel documents

$
0
0

Is there any sort of magic that needs to be done to interact with currently open Excel documents in any meaningful state? If I try to open an already open Excel document with the standard method:

   $Excel = New-Object -Com Excel.Application
    $Workbook = $Excel.Workbooks.Open($ExcelFilePath)
    $Worksheet = $Workbook.Worksheets.Item(1)
    $Worksheet.name = 'testing'
    $Workbook.save()
    $Workbook.close()

It either does nothing or gives an error message saying the file is already open for editing. Makes sense. I've also tried getting the active Excel object (as referenced somewhere else on TechNet forums that I can't bother tracking down atm), like this:

   $Excel = [Runtime.Interopservices.Marshal]::GetActiveObject('Excel.Application')
   $Workbook = $Excel.Workbooks.Open($FilePath)
... the rest is the same.
No difference. If I close the document without saving and re-open it, the changes will manifest though, so that's something. Is there something I'm doing wrong? Is there another way to do this? Is this impossible? Thanks for any help you can provide.



The requested feature DSC-Service is not found on the target machine.

$
0
0

Hi,

 

I'm trying to create a DSC Pull Server with a 2008 R2 SP1 Virtual Machine,

 

While many of the forums and tutorials have helped, particularly https ://www .google.com/url?url=https://davewyatt.wordpress.com/2014/06/07/how-to-install-a-dsc-pull-server-on-windows-2008-r2/&rct=j&frm=1&q=&esrc=s&sa=U&ei=7BavVKvxMIHEmAWDjoLwBQ&ved=0CBQQFjAA&usg=AFQjCNEUHC8QBHfNgChYXnMQe87rXrHz1g

after installing all of these modules and moving on to later tutorials I'm experiencing an error every time I try to run a pull server configuration scrpit.

 

After running the script found here: http://www .systemcentercentral.com/day-1-intro-to-powershell-dsc-and-configuring-your-first-pull-server

 

I then trid to execute that code on the localhost,

 

it came up with this error:

PowerShell provider MSFT_RoleResource failed to execute Test-TargetResource functionality with error

message: The requested feature DSC-Service is not found on the target machine.

+ CategoryInfo : InvalidOperation: (:) [], CimException

+ FullyQualifiedErrorId : ProviderOperationExecutionFailure

+ PSComputerName : localhost

Please Help, I cannot find the DSC-Service Module, and while some scripts have allowed and Pull Server to be created, they do not function peroperly because of this error.

 

Thanks a lot.

 

P.S. due to this being a 2008 R2 SP1 machine When then running the command: Add-WindowsFeature DSC-Server (As has been suggested by a lot of soureces) This error Will Come up:

Add-WindowsFeature : ArgumentNotValid: Invalid role, role service, or feature: 'DSC-Service'. The name was

not found.

At line:1 char:1

+ Add-WindowsFeature

+ ~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidData: (:) [Add-WindowsFeature], Exception

+ FullyQualifiedErrorId : NameDoesNotExist,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureComm

and

 

 

transfering lines from a texte file to another one and losing text format

$
0
0

Hi,

I have 2 files with text code on CMTrace format.

I am using that command to move the content from the source file to another file. It seems to be correct but after that every information write in the new log has chinese characters. Any idea?

(get-content $RepJournaux\$logName -Encoding UTF8) | out-file $RepJournaux\$VarJournalisation

The source file:

<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="22:15:24.599-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="22:15:24.599-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [MicrosoftCorporation_Vcredist_2005_Fr_v1] setup started.]LOG]!><time="22:15:24.616-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\Temp\Vcredist2005_Frv1\_Include\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Temp\Vcredist2005_Frv1\_Include\AppDeployToolkit\AppDeployToolkitMain.ps1]]LOG]!><time="22:15:24.624-300" date="12-24-2014" component="PSAppDeployToolkitExt" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitExtensions.ps1">
<![LOG[[Initialization] :: [MicrosoftCorporation_Vcredist_2005_Fr_v1] script version is [3.5.0]]LOG]!><time="22:15:24.631-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [Deploy Application] script version is [3.5.0]]LOG]!><time="22:15:24.642-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following non-default parameters were passed to [Deploy Application]: [-DeploymentType "install"]]LOG]!><time="22:15:24.649-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Main] script version is [3.5.0]]LOG]!><time="22:15:24.656-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Extensions] version is [1.5.0]]LOG]!><time="22:15:24.663-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Computer Name is [xxxxx]]LOG]!><time="22:15:24.669-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current User is [xxxxx\Client]]LOG]!><time="22:15:24.676-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Version is [Microsoft Windows 7 Édition Familiale Premium Service Pack 1 64-bit 6.1.7601.65536]]LOG]!><time="22:15:24.683-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Type is [Workstation]]LOG]!><time="22:15:24.690-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current Culture is [fr-CA] and UI language is [FR]]LOG]!><time="22:15:24.697-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Hardware Platform is [Physical]]LOG]!><time="22:15:24.730-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Host is [PowerGUIScriptEditorHost] with version [3.8.0.129]]LOG]!><time="22:15:24.738-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Version is [4.0 x64]]LOG]!><time="22:15:24.745-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.18444]]LOG]!><time="22:15:24.756-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="22:15:24.763-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontDPI]]LOG]!><time="22:15:24.783-300" date="12-24-2014" component="Convert-RegistryPath" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get registry key [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontDPI]]LOG]!><time="22:15:24.796-300" date="12-24-2014" component="Get-RegistryKey" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Deployment type is [Installation]]LOG]!><time="22:15:24.806-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\Temp\Vcredist2005_Frv1\_Include\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Temp\Vcredist2005_Frv1\Vcredist2005_Frv1.ps1]]LOG]!><time="22:15:24.814-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get session information for all logged on users.]LOG]!><time="22:15:24.828-300" date="12-24-2014" component="Get-LoggedOnUser" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Logged on user session details:


NTAccount          : xxxxx\Client
UserName           : Client
DomainName         : xxxxx
SessionId          : 1
SessionName        : Console
ConnectState       : Active
IsCurrentSession   : True
IsConsoleSession   : True
IsUserSession      : True
LogonTime          : 2014-12-23 23:44:20
IdleTime           : 00:00:00
DisconnectTime     :
ClientName         :
ClientProtocolType :
ClientDirectory    :
ClientBuildNumber  : 0

]LOG]!><time="22:15:24.841-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following users are logged on to the system: xxxxx\Client]LOG]!><time="22:15:24.850-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current process is running under a user account [xxxxx\Client]]LOG]!><time="22:15:24.858-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following user is the console user [[xxxxx\Client]] (user with control of physical monitor, keyboard, and mouse).]LOG]!><time="22:15:24.865-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time="22:15:24.876-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Session 0 not detected.]LOG]!><time="22:15:24.884-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Installation is running in [Interactive] mode.]LOG]!><time="22:15:24.891-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">

Destination file:

<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="22:15:24.599-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="22:15:24.599-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [MicrosoftCorporation_Vcredist_2005_Fr_v1] setup started.]LOG]!><time="22:15:24.616-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\Temp\Vcredist2005_Frv1\_Include\AppDeployToolkit\AppDeployToolkitExtensions.ps1] dot-source invoked by [C:\Temp\Vcredist2005_Frv1\_Include\AppDeployToolkit\AppDeployToolkitMain.ps1]]LOG]!><time="22:15:24.624-300" date="12-24-2014" component="PSAppDeployToolkitExt" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitExtensions.ps1">
<![LOG[[Initialization] :: [MicrosoftCorporation_Vcredist_2005_Fr_v1] script version is [3.5.0]]LOG]!><time="22:15:24.631-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [Deploy Application] script version is [3.5.0]]LOG]!><time="22:15:24.642-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following non-default parameters were passed to [Deploy Application]: [-DeploymentType "install"]]LOG]!><time="22:15:24.649-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Main] script version is [3.5.0]]LOG]!><time="22:15:24.656-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: [App Deploy Toolkit Extensions] version is [1.5.0]]LOG]!><time="22:15:24.663-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Computer Name is [xxxxx]]LOG]!><time="22:15:24.669-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current User is [xxxxx\Client]]LOG]!><time="22:15:24.676-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Version is [Microsoft Windows 7 Édition Familiale Premium Service Pack 1 64-bit 6.1.7601.65536]]LOG]!><time="22:15:24.683-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: OS Type is [Workstation]]LOG]!><time="22:15:24.690-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current Culture is [fr-CA] and UI language is [FR]]LOG]!><time="22:15:24.697-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Hardware Platform is [Physical]]LOG]!><time="22:15:24.730-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Host is [PowerGUIScriptEditorHost] with version [3.8.0.129]]LOG]!><time="22:15:24.738-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell Version is [4.0 x64]]LOG]!><time="22:15:24.745-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: PowerShell CLR (.NET) version is [4.0.30319.18444]]LOG]!><time="22:15:24.756-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: *******************************************************************************]LOG]!><time="22:15:24.763-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Return fully qualified registry key path [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontDPI]]LOG]!><time="22:15:24.783-300" date="12-24-2014" component="Convert-RegistryPath" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get registry key [Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontDPI]]LOG]!><time="22:15:24.796-300" date="12-24-2014" component="Get-RegistryKey" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Deployment type is [Installation]]LOG]!><time="22:15:24.806-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Script [C:\Temp\Vcredist2005_Frv1\_Include\AppDeployToolkit\AppDeployToolkitMain.ps1] dot-source invoked by [C:\Temp\Vcredist2005_Frv1\Vcredist2005_Frv1.ps1]]LOG]!><time="22:15:24.814-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Get session information for all logged on users.]LOG]!><time="22:15:24.828-300" date="12-24-2014" component="Get-LoggedOnUser" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Logged on user session details:


NTAccount          : xxxxx\Client
UserName           : Client
DomainName         : xxxxx
SessionId          : 1
SessionName        : Console
ConnectState       : Active
IsCurrentSession   : True
IsConsoleSession   : True
IsUserSession      : True
LogonTime          : 2014-12-23 23:44:20
IdleTime           : 00:00:00
DisconnectTime     :
ClientName         :
ClientProtocolType :
ClientDirectory    :
ClientBuildNumber  : 0

]LOG]!><time="22:15:24.841-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following users are logged on to the system: xxxxx\Client]LOG]!><time="22:15:24.850-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Current process is running under a user account [xxxxx\Client]]LOG]!><time="22:15:24.858-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: The following user is the console user [[xxxxx\Client]] (user with control of physical monitor, keyboard, and mouse).]LOG]!><time="22:15:24.865-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Unable to load COM Object [Microsoft.SMS.TSEnvironment]. Therefore, script is not currently running from a SCCM Task Sequence.]LOG]!><time="22:15:24.876-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Session 0 not detected.]LOG]!><time="22:15:24.884-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
<![LOG[[Initialization] :: Installation is running in [Interactive] mode.]LOG]!><time="22:15:24.891-300" date="12-24-2014" component="PSAppDeployToolkit" context="xxxxx\Client" type="1" thread="40" file="AppDeployToolkitMain.ps1">
ℼ䱛䝏孛牐ⵥ湉瑳污慬楴湯⁝㨺䜠瑥椠普牯慭楴湯映牯椠獮慴汬摥䄠灰楬慣楴湯丠浡⡥⥳嬠捖敲楤瑳〲㔰䙟癲崱⸮崮佌嵇㸡琼浩㵥㈢㨲㔱㈺⸴㌹ⴹ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽敇⵴湉瑳污敬䅤灰楬慣楴湯•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛敲䤭獮慴汬瑡潩嵮㨠›牁档瑩捥畴敲搠⁵祳瑳ꣃ敭搠攧灸潬瑩瑡潩獥⁴潣灭瑡扩敬›㐶戭瑩䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㔲㌮㠱㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴∢挠湯整瑸∽㝗䑓届汃敩瑮•祴数∽∱琠牨慥㵤㐢∰映汩㵥嘢牣摥獩㉴〰張牆ㅶ瀮ㅳ㸢਍ℼ䱛䝏孛牐ⵥ湉瑳污慬楴湯⁝㨺䔠灳捡⁥楤煳敵搠獩潰楮汢㩥㌠〲㠮㈹㤲㘹㈵‱潇䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㔲㌮㈳㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴∢挠湯整瑸∽㝗䑓届汃敩瑮•祴数∽∱琠牨慥㵤㐢∰映汩㵥嘢牣摥獩㉴〰張牆ㅶ瀮ㅳ㸢਍ℼ䱛䝏孛牐ⵥ湉瑳污慬楴湯⁝㨺䌠敨正映牯爠湵楮杮愠灰楬慣楴湯猨
楛硥汰牯ⱥ捁潲摒㈳挬摩敡潭嵮⸮崮佌嵇㸡琼浩㵥㈢㨲㔱㈺⸵㔳ⴷ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽敇⵴畒湮湩偧潲散獳獥•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛敲䤭獮慴汬瑡潩嵮㨠›桔⁥潦汬睯湩⁧牰捯獥敳⁳牡⁥畲湮湩㩧嬠敩灸潬敲嵝佌嵇㸡琼浩㵥㈢㨲㔱㈺⸵㜳ⴹ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽敇⵴畒湮湩偧潲散獳獥•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛敲䤭獮慴汬瑡潩嵮㨠›敒潳癬⁥牰捯獥⁳敤捳楲瑰潩獮⸮崮佌嵇㸡琼浩㵥㈢㨲㔱㈺⸵㠳ⴷ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽敇⵴畒湮湩偧潲散獳獥•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛敲䤭獮慴汬瑡潩嵮㨠›楆楮桳摥挠敨正湩⁧畲湮湩⁧灡汰捩瑡潩⡮⥳崮佌嵇㸡琼浩㵥㈢㨲㔱㈺⸵㤳ⴴ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽敇⵴畒湮湩偧潲散獳獥•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛敲䤭獮慴汬瑡潩嵮㨠›牐浯瑰甠敳⁲潴挠潬敳愠灰楬慣楴湯猨
䥛瑮牥敮⁴硅汰牯牥⹝⸮䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㔲㐮㈱㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴匢潨⵷敗捬浯健潲灭≴挠湯整瑸∽㝗䑓届汃敩瑮•祴数∽∱琠牨慥㵤㐢∰映汩㵥嘢牣摥獩㉴〰張牆ㅶ瀮ㅳ㸢਍ℼ䱛䝏孛牐ⵥ湉瑳污慬楴湯⁝㨺唠敳⁲敳敬瑣摥琠潦捲⁥桴⁥灡汰捩瑡潩⡮⥳琠汣獯⹥⸮䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㜲ㄮ㐱㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴匢潨⵷湉瑳污慬楴湯敗捬浯≥挠湯整瑸∽㝗䑓届汃敩瑮•祴数∽∱琠牨慥㵤㐢∰映汩㵥嘢牣摥獩㉴〰張牆ㅶ瀮ㅳ㸢਍ℼ䱛䝏孛牐ⵥ湉瑳污慬楴湯⁝㨺匠潴⁰牰捯獥⁳⸮崮佌嵇㸡琼浩㵥㈢㨲㔱㈺⸷㈱ⴲ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽桓睯䤭獮慴汬瑡潩坮汥潣敭•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛敲䤭獮慴汬瑡潩嵮㨠›瑓灯瀠潲散獳⸠⸮䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㜲ㄮ㈳㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴匢潨⵷湉瑳污慬楴湯敗捬浯≥挠湯整瑸∽㝗䑓届汃敩瑮•祴数∽∱琠牨慥㵤㐢∰映汩㵥嘢牣摥獩㉴〰張牆ㅶ瀮ㅳ㸢਍ℼ䱛䝏孛牐ⵥ湉瑳污慬楴湯⁝㨺䌠敨正映牯爠湵楮杮愠灰楬慣楴湯猨
楛硥汰牯ⱥ捁潲摒㈳挬摩敡潭嵮⸮崮佌嵇㸡琼浩㵥㈢㨲㔱㈺⸹㘱ⴳ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽敇⵴畒湮湩偧潲散獳獥•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛敲䤭獮慴汬瑡潩嵮㨠›灁汰捩瑡潩⡮⥳愠敲渠瑯爠湵楮杮崮佌嵇㸡琼浩㵥㈢㨲㔱㈺⸹㠱ⴵ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽敇⵴畒湮湩偧潲散獳獥•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛敲䤭獮慴汬瑡潩嵮㨠›楆楮桳摥挠敨正湩⁧畲湮湩⁧灡汰捩瑡潩⡮⥳崮佌嵇㸡琼浩㵥㈢㨲㔱㈺⸹㤱ⴳ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽敇⵴畒湮湩偧潲散獳獥•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛獯⵴湉瑳污慬楴湯⁝㨺䔠灳捡⁥楤煳敵搠꧃畢㩴㌠㠲㤵⸳ㄷ㠴㌴㔷䴠嵯佌嵇㸡琼浩㵥㈢㨲㔱㈺⸹ㄲⴵ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛獯⵴湉瑳污慬楴湯⁝㨺䔠灳捡⁥楤煳敵䘠湩›†㈳㔸㐹㈮㤶㌵㈱‵潍䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㤲㈮㌲㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴∢挠湯整瑸∽㝗䑓届汃敩瑮•祴数∽∱琠牨慥㵤㐢∰映汩㵥嘢牣摥獩㉴〰張牆ㅶ瀮ㅳ㸢਍ℼ䱛䝏孛潐瑳䤭獮慴汬瑡潩嵮㨠›楄晦꧃敲据⁥❤瑵汩獩瑡潩敤氠攧灳捡⁥楤煳敵›〭㔮㐵㠶㔷䴠瑵汩獩꧃⁥畯氠扩꧃썲斩⠠썄抩瑵ⴠ䘠湩崩佌嵇㸡琼浩㵥㈢㨲㔱㈺⸹㌲ⴰ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛獯⵴湉瑳污慬楴湯⁝㨺䘠湩搠椧獮慴汬瑡潩嵮佌嵇㸡琼浩㵥㈢㨲㔱㈺⸹㐲ⴶ〳∰搠瑡㵥ㄢⴲ㐲㈭㄰∴挠浯潰敮瑮∽•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛獯⵴湉瑳污慬楴湯⁝㨺䴠捩潲潳瑦潃灲牯瑡潩彮捖敲楤瑳㉟〰張牆癟‱湉瑳污慬楴湯挠浯汰瑥摥眠瑩⁨硥瑩挠摯⁥せ⹝䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㤲㈮㔶㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴䔢楸⵴捓楲瑰•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛獯⵴湉瑳污慬楴湯⁝㨺䐠獩汰祡戠污潬湯琠灩渠瑯晩捩瑡潩獡桹档潲潮獵祬眠瑩⁨敭獳条⁥䥛獮慴汬瑡潩썲疩獳敩崮䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㤲㈮ㄸ㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴匢潨⵷慂汬潯呮灩•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛獯⵴湉瑳污慬楴湯⁝㨺嬠㩃坜湩潤獷卜獹整㍭尲楗摮睯偳睯牥桓汥屬ㅶ〮灜睯牥桳汥⹬硥嵥椠⁳⁡慶楬⁤慰桴‬潣瑮湩敵䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㤲㈮㜹㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴䔢數畣整倭潲散獳•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛獯⵴湉瑳污慬楴湯⁝㨺圠牯楫杮䐠物捥潴祲椠⁳䍛尺楗摮睯屳祓瑳浥㈳坜湩潤獷潐敷卲敨汬癜⸱崰䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㤲㌮㘰㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴䔢數畣整倭潲散獳•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛獯⵴湉瑳污慬楴湯⁝㨺䔠數畣楴杮嬠㩃坜湩潤獷卜獹整㍭尲楗摮睯偳睯牥桓汥屬ㅶ〮灜睯牥桳汥⹬硥⁥偛睯牥桓汥捓楲瑰求捯嵫⹝⸮䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㤲㌮㘱㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴䔢數畣整倭潲散獳•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛獯⵴湉瑳污慬楴湯⁝㨺丠坯楡⁴慰慲敭整⁲灳捥晩敩⹤䌠湯楴畮湩⁧楷桴畯⁴慷瑩湩⁧潦⁲硥瑩挠摯⹥⸮䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㤲㌮㐲㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴䔢數畣整倭潲散獳•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ㰊嬡佌孇偛獯⵴湉瑳污慬楴湯⁝㨺ⴠⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭⴭ䱝䝏⅝㰾楴敭∽㈲ㄺ㨵㤲㌮㠳㌭〰•慤整∽㈱㈭ⴴ〲㐱•潣灭湯湥㵴䔢楸⵴捓楲瑰•潣瑮硥㵴圢匷䩄䍜楬湥≴琠灹㵥ㄢ•桴敲摡∽〴•楦敬∽捖敲楤瑳〲㔰䙟癲⸱獰∱ാ

Thanks,

François

Need to obtain AD user's IP phone>Other>Current Value information via PowerShell command

$
0
0

Hi,

I need to obtain AD user's IP phone>Other>Current Value information via PowerShell command. Can you help?

Folder permissions set in Powershell not visible in Windows Explorer

$
0
0

Hi

I have created the following script to grant TestGroup access to c:\MyFolder:

$MyFolder = "c:\MyFolder"
$rule = new-object System.Security.AccessControl.FileSystemAccessRule ("TestGroup","FullControl","Allow")
$acl = Get-ACL $MyFolder
$acl.SetAccessRule($rule)
Set-ACL -Path $MyFolder -AclObject $acl

The script works and grants access. However, if I open the Security pane from Windows Explorer, I cannot see the permissions:

But the permissions are set:

Why can't I see the permissions in Explorer when they are set through Powershell?

determine 32 or 64bit OS?

$
0
0

Hello,

Need to determine via script if running on a 32 or 64bit version of windows. It needs to work on server 2003, 2008, and 2008R2, so Win32_Operatingsystem's OSArchitecture property will not work for all (not available on server 2003).

I've seen others say to use the following (copy/paste from MSDN doc)
http://msdn.microsoft.com/en-us/library/aa394373%28v=VS.85%29.aspx : 

--------------------------
The Win32_Processor class has these properties.

AddressWidth
Data type: uint16
Access type: Read-only

On a 32-bit operating system, the value is 32 and on a 64-bit operating system it is 64. This property is inherited from CIM_Processor.

------------

so considering that is a property of the processor, I'm wondering if this can be relied on to determine the OS architecture? Can anyone confirm this is the recommended and reliable way to go? Otherwise, I will write a function that uses OSArchitecture for 2008 and 2008R2 and use the Win32_OperatingSystem 'Name' property for server 2003. Between those two things I know I can reliable return the correct information, but if there is one simple place to check, of course I would rather just do that.

anyone?

Viewing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>