Article archive
Start/Stop Managed Metadata Service
07/01/2012 22:30
#list of services
Get-SPServiceInstance -Server PAC-SP2010 | sort TypeName | Format-Table -AutoSize
#stop managed metadata service
Get-SPServiceInstance -Server PAC-SP2010 | where-object {$_.TypeName -eq "Managed Metadata Web Service" } | Stop-SPServiceInstance...
Add user to Farm Admin Group
07/01/2012 21:17
# .DESCRIPTION
# Add users to the Farm Administrators group
#
# .INPUT
# - Central Admin port number
# - user or group
# - http Central admin...
Set-Location : A positional parameter cannot be found that accepts argument 'and'.
07/01/2012 14:34
PS C:\> cd c:\Documents and Settings\Lukas\Desktop\XMLskusky
Set-Location : A positional parameter cannot be found that accepts argument 'and'.
At line:1 char:3
+ cd <<<< c:\Documents and Settings\Lukas\Desktop\XMLskusky
+...
The term 'praram_switch.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program.
07/01/2012 14:17
C:\Documents and Settings\Lukas\My Documents\P_R_O_G_R_A_MOVANIE\powerShell>powershell praram_switch.ps1
The term 'praram_switch.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify...
file .ps1 cannot be loaded because the execution of scripts is disabled on this system
07/01/2012 14:02
File C:\Documents and Settings\Lukas\My Documents\P_R_O_G_R_A_MOVANIE\powerShell\praram_switch.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
At line:1 char:20
+ .\praram_switch.ps1...
Security group creating and settings
07/01/2012 11:54
Security group creation - from XML file
Access settings for members
Termstore script
07/01/2012 11:49
1.Term store import with translation - adding to existing termset possibly
2.Term store export with translations
3.Term store access test - verifying all services, permissions for current account, people picker instalation...
ADD TERMSTORE...
pozn. k nastaveniu stylu stranky
07/01/2012 01:40
V .css file som zmenil nastavenie
p margin-botom na 0em
pri #mainContent box_content p line-height z 1.8em na 1.2em.
Feed choice menu with options
07/01/2012 01:36
#Feed choice menu with options.
function SelectChoice
{
param(
[array]$options
)
if(($options.length -gt 1))
...
Read input to batch file
07/01/2012 00:49
@echo off
set vek=
set /p vek=Kolko mas rokov? %=%
set meno=
set /p meno=Ako sa volas? %=%
echo Volas sa teda %meno% a mas %vek% rokov.
if %vek% gtr 18 (
echo Mas viac nez 18 rokov
echo Si dospely.
)
if %vek% lss 18 echo Este si dieta.
Items: 371 - 380 of 384