check powershell version in windows server with powershell command

check powershell version in windows server with powershell command

This post describes how to check powershell version in windows server with powershell command. Many time we face issue while writing powershell script and facing powershell version compatibility issue. Powershell version check required at this moment.

$PSVersionTable
check powershell version in windows server with powershell command
Advertisements
Get template id sharepoint site with powershell

Get template id sharepoint site with powershell

There are many situations or tickets we are getting where we need to Get template id sharepoint site that are currently using. I mean template id of one site currently user is using. Here i am sharing how to Get template id sharepoint site with powershell.

$web = Get-SPWeb http://win-7uqhlrcrq7g:40331/sites/SpTechSupport
$web.WebTemplate + " " + $web.WebTemplateId
$web.close()
Get template id sharepoint site with powershell
Jagannath Bhajan | Bhaba Lagana Lagana ମିଛ ଦୁନିଆ | Odia Bhajan | #JagannathBhajan#OldOdiaBhajan

start stop manage services in windows server with powershell

This post is all about how to start stop manage services in windows server with powershell. We will discuss the start service powershell command, stop service powershell command, Killing Windows Service that Hangs on Stopping or Not Responding command, how to get service powershell command, how to set service startup type powershell command.

Get Service powershell command windows server

This command will display all service on computer. Default display will be status, service name, and display name each service

Get-Service

Get service begin with search string

Get service begin with Display services that include search string “sp”

Get-Service "sp*" | Sort-Object status
Get service begin with Display services that include search

Display services that include search string

Display services that include search string “sharepoint”

Get-Service -Displayname "*sharepoint*"
Display services that include search string

Get services begin with search string and an exclusion

Get services begin with search string “sp” and an exclusion “spo”

Get-Service -Name "sp*" -Exclude "spooler","sppsvc"
Get services begin with search string and an exclusion

Get object details for service

Get-Service SPAdminV4 | Select-Object *
Get service begin with Display services that include search

Display services that are running

Display services with status Running

Get-Service | Where-Object {$_.Status -eq "Running"}
Display services that are running

Display services that are Stopped

Display services with status “Stopped”

Get-Service | Where-Object {$_.Status -eq "Stopped"}
Display services stopped

Start Service powershell command

Below command returns how to start a particular service using powershell.

Start-Service ServiceName
example: ServiceName = SPAdminV4
Start-Service SPAdminV4

Stop Service powershell command

Below command returns how to stop a particular service using powershell.

Stop-Service ServiceName
example: ServiceName = OSearch16
Stop-Service OSearch16
how to stop a particular service using powershell

Disable Service powershell command

Below command returns how to disable a particular service using powershell.

Set-Service ServiceName -StartupType Disabled
or
Set-Service -Name ServiceName -StartupType Disabled
example: ServiceName = OSearch16
Set-Service -Name OSearch16 -StartupType Disabled
how to disable a particular service using powershell

Start Service with status stopped

Start service whose status is stopped bu running below command.

Get-Service Wsearch | Where {$_.status –eq 'Stopped'} | Start-Service
Krishna Bhajan | O Kanha Ab To Murli Ki Madhur | Old Hindi Bhajan | #KrishnaBhajan#OldHindiBhajan
New feature Per-machine install of sync client

New feature Per-machine install of sync client

OneDrive sync client installs per user by default means OneDrive.exe installed for each user account in system under the folder %localappdata%. By introduction of the New feature Per-machine install of sync client, you can install OneDrive under the “Program Files (x86)” directory, means all profiles on the machine will use the same OneDrive.exe binary. There will be a single version of OneDrive on the machine and a single update to download. Other than where the sync client is installed, everything else stays the same.

New per-machine sync client provides:

  • Automatic transitioning from the previous OneDrive sync client (Groove.exe)
  • Automatic conversion from per-user to per-machine
  • Automatic updates when a new version is available

It supports syncing OneDrive and SharePoint files in Microsoft 365 and SharePoint Server 2019

System Requirements OneDrive Desktop Sync App

OneDrive desktop sync app (Download page OneDrive website) requires following

Operating system

  • 32-bit or 64-bit version of Windows 10, Windows 8/8.1, or Windows 7
  • Windows Server 2016, Windows Server 2012 (including R2), Windows Server 2008 R2, or Windows Server 2008 with Service Pack 2 and the Platform Update for Windows Server 2008
  • Mac OS X 10.12 or later

Processor

1.6 GHz or higher, or Intel-based Mac computer

Memory

1 GB of RAM or higher

Resolution

1024 × 576 minimum

Internet connection

High-speed Internet access is recommended

File systems

NTFS or HFS+ (case insensitive) or APFS (case insensitive)

OneDrive mobile app

  • A phone or tablet with Android 5.0 or later
  • An iPhone, iPad, or iPod touch with iOS 11.3 or later
  • A phone running Windows Phone 7.5 or later
Advertisements

Install OneDrive Sync Client

  • Download OneDriveSetup.exe.
  • Run “OneDriveSetup.exe /allusers” from a command prompt window (will result in a UAC prompt) or by using SCCM. This will install the sync client under “Program Files (x86)\Microsoft OneDrive” directory. Once setup completes, OneDrive will start. If accounts were added on the computer, they’ll be migrated automatically.

Related Information

  • Its helpful especially for multi-user computers and when you don’t want .exe files running from the user profile. Over time, Microsoft recommend customers switch to per-machine installation.
  • Although a single version of OneDrive.exe is installed, a new process is created for every OneDrive account syncing on the computer.
  • Per-machine sync client will auto-update on the same cadence as the per-user sync client and the same rings are supported. The release notes are the same. More info about the sync client update process.
  • User intervention is not required for the per-machine sync client to update itself. Elevation is required when you first set it up. During setup, it installs a scheduled task and a Windows service, which are used to perform the updates silently without user intervention since they run in elevated mode.
New Feature Autodesk integration for DWG files

New Feature Autodesk integration for DWG files

By the New Feature Autodesk integration for DWG files users will see actions available on the command bar and pop-up menus to open DWG files in AutoCAD (web app) in OneDrive for Business and SharePoint Online.

By the New Feature Autodesk integration for DWG files users will see actions available on the command bar and pop-up menus to open DWG files in AutoCAD (web app) in OneDrive for Business and SharePoint Online.

Tenant administrators can disable this functionality through use of PowerShell command if desired. Refer SharePoint Online Cmdlets documentation.

Targeted Release to “entire org” customers in mid March, and the roll out will complete worldwide by the end of March.

We can preview many file types in Microsoft Teams, OneDrive, and SharePoint. Previews and thumbnail images appear in the web view and for customers using Files On-Demand in Windows 10.

Advertisements

Full list of supported file types are as below

3-D Modeling/Printing: 3MF, COOL, GLB, GLTF, OBJ, STL
Apple: MOVIE, PAGES, PICT, SKETCH
Adobe: AI, PDF, PSB, PSD
Audio/Video Media Files: 3G2, 3GP, ASF, BMP, M2TS, M4V, MOV, MP3, MP4, MP4V, MTS, TS, WMV
AutoCAD: DWG
AutoDesk: FBX
BioWare Game Engine: ERF
Compressed File: ZIP
Compressed File (Unix): Z
DICOM Medical Images: DCM, DCM30, DICM, DICOM
Finale: PLY
HydroCAD: HCP
Image Formats: GIF, JPEG, JPG, JPE, MEF, MRW, NEF, NRW, ORF, PANO, PEF, PNG, SPM, TIF, TIFF, XBM, XCF

Note:
OneDrive show thumbnails or image previews only if the image size less than 100MB (approximately 12000 x 8000 pixels).
Advertisements

License Key: KEY
Log Files: LOG
Microsoft Office (Word, PowerPoint, Excel): CSV, DIC, DOC, DOCM, DOCX, DOTM, DOTX, POT, POTM, POTX, PPS, PPSM, PPSX, PPT, PPTM, PPTX, XD, XLS, XLSB, XLSX, SLTX
Microsoft Outlook: EML, MSG
Microsoft Visio: VSD, VSDX
Microsoft Windows: CUR, ICO, ICON
Open eBook: EPUB
OpenOffice: ODP, ODS, ODT
Photo: ARW, CR2, CRW, DNG
Rich Text Format: RTF
Text and Code: ABAP, ADA, ADP, AHK, AS, AS3, ASC, ASCX, ASM, ASP, AWK, BAS, BASH, BASH_LOGIN, BASH_LOGOUT, BASH_PROFILE, BASHRC, BAT, BIB, BSH, BUILD, BUILDER, C, C++, CAPFILE, CBK, CC, CFC, CFM, CFML, CL, CLJ, CMAKE, CMD, COFFEE, CPP, CPT, CPY, CS, CSHTML, CSON, CSPROJ, CSS, CTP, CXX, D, DDL, DI. DIF, DIFF, DISCO, DML, DTD, DTML, EL, EMAKE, ERB, ERL, F90, F95, FS, FSI, FSSCRIPT, FSX, GEMFILE, GEMSPEC, GITCONFIG, GO, GROOVY, GVY, H, H++, HAML, HANDLEBARS, HBS, HRL, HS, HTC, HTML, HXX, IDL, IIM, INC, INF, INI, INL, IPP, IRBRC, JADE, JAV, JAVA, JS, JSON, JSP, JSX, L, LESS, LHS, LISP, LOG, LST, LTX, LUA, M, MAKE, MARKDN, MARKDOWN, MD, MDOWN, MKDN, ML, MLI, MLL, MLY, MM, MUD, NFO, OPML, OSASCRIPT, OUT, P, PAS, PATCH, PHP, PHP2, PHP3, PHP4, PHP5, PL, PLIST, PM, POD, PP, PROFILE, PROPERTIES, PS, PS1, PT, PY, PYW, R, RAKE, RB, RBX, RC, RE, README, REG, REST, RESW, RESX, RHTML, RJS, RPROFILE, RPY, RSS, RST, RXML, S, SASS, SCALA, SCM, SCONSCRIPT, SCONSTRUCT, SCRIPT, SCSS, SGML, SH, SHTML, SML, SQL, STY, TCL, TEX, TEXT, TEXTILE, TLD, TLI, TMPL, TPL, TXT, VB, VI, VIM, WSDL, XAML, XHTML, XOML, XML, XSD, XSL, XSLT, YAML, YAWS, YML, ZSH
Web/Hypertext: HTM, HTML, Markdown, MD, URL

ViewFormPagesLockDown feature

ViewFormPagesLockDown feature Unable to setup uniquely secured permission

I remembered once faced an error where user having Contribute permission to folder in the library but getting access denied. This issue in entire site collection. User with unique permission to list, folders are not able to view the page. The issue resolved by changing ViewFormPagesLockDown feature to Disable. Below article describes all about the information about ViewFormPagesLockDown feature Unable to setup uniquely secured permission.

Configure anonymous access

For content to be available for anonymous access, the following must be configured:
1. The site or site collection must be configured to allow anonymous access.
2. At least one zone in the Web application must be configured to allow anonymous access.
Enable anonymous access only for Web applications that require unauthenticated access. If you want to use authentication for personalization, implement forms authentication by using a simple database authentication provider

Advertisements

ViewFormPagesLockDown SharePoint Feature:

  • Allows anonymous users to only view the Publishing pages, not any of the form or view pages (DispForm.aspx, AllItems.aspx). if your portal wasn’t born as a publishing portal, all anonymous users will have access to AllItems.aspx, DispForm.aspx and other pages that you don’t want outside users to see.
  • Disallows anonymous access to pages in the “_layouts” directory that inherit from LayoutsPageBase.
  • By default, all publishing sites have the feature called “ViewFormPagesLockDown” activated, but not on the Collaboration Portal site or Team sites’ definition. Without this Feature active on anonymous public sites, any users – including search engines like Google will be able to view (and crawl) SharePoint out-of-box pages which are tied to lists and webs that allow viewing by anonymous users.
  • Yes, these users might not have the ability to do anything, but you may not want anonymous users to view the form pages.
  • If you still get the Form pages visible for the end users, try: With the ViewFormPagesLockDown feature Enabled, disable Anonymous Access in the site, then re-enable it. MSDN Link: http://technet.microsoft.com/en-us/library/cc263468(office.12).aspx
  • So this lockdown feature is useful if a site collection that is configured for Anonymous access on a Publishing site and you want to lock it down so Anonymous users don’t have access to the Forms page (e.g. http://ServerName/Pages/Forms/AllItems.aspx)
  • If a library or subsite that has broken permission inheritance, and permission is given to user or group to only that library or site. In this case to view the contents, user/group must have some access to root web else user/group cannot access although they have permission.
  • One more scenario where Publishing Portal configured for Anonymous access where users are unable to post comments (which are stored in a List) on a blog site then the lockdown feature can be disabled, which will result in allowing Anonymous users to post comments. Normally, people won’t have problem posting comments on a blog site unless it is a Publishing site, in which case they will get a prompt to enter user credentials. In such a scenario you can disable the lockdown feature.
  • If you want to place your custom application pages inside the _layouts directory, which anonymous users must hit, there’s the UnsecuredLayoutsPageBase class you can use as the base class of your page, and there’s always just the Page class as in a standard ASP.Net application page.
  • When enabled permissions for users with limited access permissions, such as anonymous users, are reduced, preventing access to application pages including item properties or list views.
  • If a document, folder, or library has unique permission, those users will not able to 1. Use the drag and drop feature to upload documents 2. Brows to the affected folder 3. Use the shared with feature 4. Open document in the office client 5. Some call out features on documents and folders will not render as expected.
Advertisements

How to check site has ViewFormPagesLockDown feature Enabled or Disabled

Run the below commands to get the status of ViewFormPagesLockDown feature

Get-SPFeature -site http://Site Collection URL
How to turn lockdown mode to off
$lockdown = Get-SPFeature viewformpageslockdown
Disable-SPFeature $lockdown -url http://Site Collection URL