Search found 11743 matches

by jvierra
Thu Dec 16, 2010 10:45 pm
Forum: Windows PowerShell
Topic: Getting metabase.xml details through Powershell
Replies: 7
Views: 3594

Getting metabase.xml details through Powershell

Please do not keep reposting the same question in multiple topics. The items you are asking for are for ASP.NET and not for the web service. ASP.NET items are kept in the web.config file on a per VD basis and are mastered by the web.config file in the system folder. The metabase tracks the values of...
by jvierra
Thu Dec 16, 2010 3:07 pm
Forum: Windows PowerShell
Topic: Find/Replace Text in CSV
Replies: 12
Views: 2650

Find/Replace Text in CSV

That was only a demonstration of how to replace parts of a string in a field on a CSV file. After the apss on teh file you would rewrite the file using Export-Csv. The biggest issue you have to tackle is how to determine when the firld has the contents that you are trying to replace. You could use S...
by jvierra
Thu Dec 16, 2010 7:36 am
Forum: Windows PowerShell
Topic: Find/Replace Text in CSV
Replies: 12
Views: 2650

Find/Replace Text in CSV

Import-Csv file.csv |
ForEach{
$_.Name2.Replace("Doe","&")
}
by jvierra
Thu Dec 16, 2010 6:07 am
Forum: Windows PowerShell
Topic: Doubt creating a script to add local printers
Replies: 3
Views: 927

Doubt creating a script to add local printers

Well - you can't change a printer to color or to balck and white. AP printer is either a cat or a dog and can't be changed into the other type. What you are likely looking to do is to change the output settings for the print session. This is done using the venfors configuration utility and cannot us...
by jvierra
Thu Dec 16, 2010 5:54 am
Forum: Windows PowerShell
Topic: Find/Replace Text in CSV
Replies: 12
Views: 2650

Find/Replace Text in CSV

Load the file using Import-Csv then enumerate the records and process the name statement.

Import-Csv file.csv |
ForEach{
$_.Name1.Replace("Doe","&")
}
by jvierra
Thu Dec 16, 2010 5:47 am
Forum: VBScript
Topic: Access Denied Error
Replies: 32
Views: 5235

Access Denied Error

The user has to create the script in order for it to not be blocked. If you create it remotely it i slikely to be blocked.

At the console right click the script and look at the properties.

See the image below:

by jvierra
Thu Dec 16, 2010 2:58 am
Forum: Windows PowerShell
Topic: Doubt creating a script to add local printers
Replies: 3
Views: 927

Doubt creating a script to add local printers

Get the Win32_PrinterConfiguration after the printer is created.

http://msdn.microsoft.com/en-us/library ... S.85).aspx
by jvierra
Wed Dec 15, 2010 6:26 pm
Forum: Windows PowerShell
Topic: Getting metabase.xml details through Powershell
Replies: 7
Views: 3594

Getting metabase.xml details through Powershell

Also in case of IIS 7.5 Get-Webconfigurationproperty used to refer applicationHost.config file I needed a cmdlet like this that can refer metabase.xml and help me out in getting properties that i wish to use All of this is usually done with WMI or ADSI. The CmdLet you refer to is only for IIS 7 I b...
by jvierra
Wed Dec 15, 2010 6:06 pm
Forum: Windows PowerShell
Topic: Getting metabase.xml details through Powershell
Replies: 7
Views: 3594

Getting metabase.xml details through Powershell

THis is much easier.

Code: Select all

$iis=[adsi]"IIS://localhost/w3svc"
$iis.AppAllowDebugging

It can be run remoely to any host as long as the IIS support files are loaded on the local machine.
by jvierra
Wed Dec 15, 2010 5:49 pm
Forum: Windows PowerShell
Topic: Getting metabase.xml details through Powershell
Replies: 7
Views: 3594

Getting metabase.xml details through Powershell

Start like this: PS C:> [xml]$xml=cat C:WINDOWSsystem32inetsrvmetabase.xml PS C:> $xml xml configuration --- ------------- version="1.0" configuration PS C:> $xml.commfiguration PS C:> $xml.configuration xmlns MBProperty ----- ---------- urn:microsoft-catalog:XML_Metabase_V64_0 MBProperty PS C:> $xm...