Powershell script set timezone and default calendar rights to NonEditingAuthor

Hi
How do I make a Powershell script setting Timezone to da-dk and calendar rights on default user to NonEditingAuthor for all users?
Best regards
MSISOM

For product specificquestions yoou should post in the product forum.  In this case in teh O365 forum.
I conencted in to see how easy it is to find the info.  On query was all it took.
Set-MailboxRegionalConfiguration  --->>
http://technet.microsoft.com/en-us/library/dd351103(v=exchg.150).aspx
Searhing O65 is the best place to find your answers.  Post here when you have an issue of how to use PowerShell.
http://community.office365.com/en-us/f/613/t/29986.aspx
¯\_(ツ)_/¯

Similar Messages

  • Maddening problem - Timezone and published calendar

    OK folks, this is the problem:
    I'm publishing a calendar on .mac. All of my entries on .mac are 7 hours later than I've set them in iCal, even through my iCal timezone and my system preferences timezone are the same (Europe/Lodon). The published timezone on the browser page also claims to be Europe/London, so why on Earth are the times different?
    Any ideas? Big thanks to anyone who can help...

    I spent something like 6 hours last week trying to tweak things in the .ics file to sort this out and came away with nothing.
    Short of writing a script to change the actual time, I'm at a loss.
    Before going the script route, I'm going to play with changing the .ics file to a vCal file and see if that helps.
    What I found most frustrating is that if I took the .ics file and stripped out all references to time zone, I still ended up with an event that shifts time. With no reference to time (including the 'z' which the specification details as an indicator of UTC), I'm at a loss as to understand the shift.
    The GroupWise server does use a timezone designation, so my only other guess is that it automatically assumes UTC for any file without a timezone attributed to it and then adjusts accordingly. Perhaps if I can figure out why "my" Pacific time zone isn't recognized by the server, I'll have an answer.
    I can't seem to find good documentation on the GroupWise end, but it obviously sounds similar. Maybe looking outside the .ics spec is the answer. I found reference on the MS site to using vCal, so maybe there is hope.

  • Powershell Script to Enable and Disable SharePoint list versioning

    Hi,
    We have a Sharepoint list with a date and time field named 'Today' which we update overnight
    via PowerShell script to give the current date and this recalculates other calculated fields
    in the list.
    All is fine but we have versioning enabled on the list and so we get a new version created everyday.
    Is there a way to disable the versioning prior to running the update and then re-enable
    after?
    This is the script
    Add-PSSnapin Microsoft.SharePoint.PowerShell
    Start-SPAssignment -Global
    $SPWeb = Get-SPWeb "<SharePointSiteUrl>"
    $List = $SPWeb.Lists["ListName"]
    $Items = $List.Items
    foreach ($item in $items)
     $modifiedBy = $item["Editor"]
     $modified = $item["Modified"]
     $item["Today"] = Get-Date
     $item["Editor"] = $modifiedBy
     $item["Modified"] = $modified
     $item.Update()
     $list.Update()
    $SPWeb.Dispose()
    Stop-SPAssignment -Global  

    Hi
    Here is a quick powershell script to iterate a site collection and remove versioning on all list of base-type Document Library. Also the iteration removes all the current versions of list items. Great for freeing up space and also to make publishing sites
    a little more easy to manage content for trusted content approvers!
    Check the below powershell script
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    # Get site
    $site = new-object Microsoft.SharePoint.SPSite("http://YoServer:1002")
    # Iterate all the webs of the site
    foreach ($web in $site.AllWebs)
    # loop through all lists in web
    foreach ($list in $web.Lists)
    # Ensure list is of base Document Library
    if ($list.BaseType -ne "DocumentLibrary")
    # Move on
    continue
    # Loop through each item
    foreach ($item in $list.Items)
    # Get the file
    $file = $item.File
    # Delete all versions
    $file.Versions.DeleteAll()
    # Remove version from the list
    $list.EnableVersioning = $false
    $list.EnableModeration = $false
    # We still want to ensure check out
    $list.ForceCheckout = $true
    $list.Update()
    $web.Dispose();
    $site.Dispose();
    Please mark the Answer and Vote me if you think that it will help you to resolved your issue

  • Unable to set outlook as default calendar

    After the last software update I installed on my Blackberry torch, I have lost the option to set Outlook as my default calendar - apparently Facebook is now my default.
    Any suggestions how I can change it?
    My syncing is showing as Outlook.

    Hi hillke,
    Welcome to the BlackBerry Support Community.
    Could you please provide more information so I can better assist you?
    When you click on the drop down list next to Calendar (CICAL) in Options > Device > Advanced System Settings > Default Services, is Facebook the only option to select?
    How many email accounts do you have integrated on your BlackBerry® Torch™ 9860 smartphone?
    Can you please clarify what you mean by your syncing is showing Microsoft® Outlook®?
    Thanks.
    -FS
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • Powershell Script to Remove and Add the user with same permission

    Hi,
    I need to remove all users within all site collection of a web application and add them back with same permission level. We have a siteminder based custom trusted identity token issuer configured in our farm. The name of the issuer will be changed
    due to some architectural decissions , hence all users which are there before will be unidentified, hence need to be removed and added again.
    Currently each user looks like :                       c:0ǹ.t|Identity Token Issuer1|user1
    Post the change the user will look like:          c:0ǹ.t|Identity Token Issuer New|user1
    I am looking for a powershell script which can handle this operation.
    Thanks, Bivsworld

    Bivsworld,
    Below link should give you a start.
    http://www.sptechlearn.com/2014/10/delete-users-from-user-information-list.html

  • Where is the setting for a default calendar in iOS 7.1?

    Settings; Mail, Contacts, Calendars, no longer offers a default calendar option???  Any advice?

    Mine does.
    Do you have more than one calendar?

  • Powershell Script to change the default user Account picture for all users in windows 7 and 8

    Hello,
    Can some sone help me with PS script to change user account pictures of all user account in windows 7 and windows 8 ?
    I will deploy this through MDT TS as Custom TS after OSD.
    Shailendra
    Shailendra Dev

    Hello,
    Can some sone help me with PS script to change user account pictures of all user account in windows 7 and windows 8 ?
    I will deploy this through MDT TS as Custom TS after OSD.
    Shailendra
    Shailendra Dev
    The default user account picture is stored here.
    C:\programdata\Microsoft\User Account Pictures\user.bmp
    It should just be a matter have copying the picture you want to that location and over writing what is there.
    or....
    Computer Configuration\Administrative Templates\Control Panel\User Accounts\Apply the default user logon picture to all users
    You can also configure this by a registry setting;
     [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
      UseDefaultTile = 1
    The picture that you configure, will not be loaded until the user account will actually be created on the pc. Meaning the first time a >new< user will log on to a pc, they will have no picture shown at all using their login screen (this is default
    behavior). Same will occur if you enable the policy don't display last user name. However, once they log in the picture will be shown in the start menu, and if they lock their pc the image will also be shown

  • Can a calendar within ical be set as a default calendar?

    I have several calenders in ical. Whenever I post a new event, ical defaults to the last calendar used. Is there a way to default to a specific calendar all the time? Moving that calendar to the top of the list does not work - ical still defaults to whatever calendar was last used.
    One of my calendars is published online. Another is shared. When I'm working fast, I sometimes forget to check to which calendar ical is automatically entering a new event. The result - people see information to which they should not be privy.
    I'd like all entered events to default to my personal calendar unless I manually input a different calendar.
    Is this possible?
    Thanks

    On the left side of the iCal window, drag & drop the calendar that you want to be default to the top of the list.
    By default the "Home" calendar is number 1.
    PS
    I love using Today to interface with iCal for creating tasks and new events:
    http://www.secondgearsoftware.com/today/
    You can set keyboard shortcuts to create new tasks and events (while the program is hidden).

  • PowerShell script to find and remove duplicate items from document library

    Hi Friends,
    Please check this below script, It is finding the duplicate items and removing it. This script is not working to find the duplicate items from document
    library and remove. Can you please let me know where it is wrong.
    Add-PSSnapin microsoft.sharepoint.powershell 
    $web = Get-SPWeb -Identity "http://zapltvsspdev02:4333/bu/EXCO" 
    $list = $web.Lists["AECI Documents"] 
    $AllDuplicates = $list.Items.GetDataTable() | Group-Object INumber | where {$_.count -gt 1} 
    $count = 1 
    $max = $AllDuplicates.Count 
    foreach($duplicate in $AllDuplicates) 
    $duplicate.group | Select-Object -Skip 1 | % {$list.GetItemById($_.ID).Delete()} 
    Write-Progress -PercentComplete ($count / $max * 100) -Activity "$count duplicates removed" -Status "In Progress" 
    $count++ 
    Remove-PsSnapin Microsoft.SharePoint.PowerShell
    Note:
    In the above code, duplicates are found using the "INumber" column. 
    valmiki

    check this
    http://stackoverflow.com/questions/21337158/delete-duplicate-items-in-sharepoint-list

  • Setting timezone and hwclock result in bad time saved to bios

    When I follow the guide https://wiki.archlinux.org/index.php/be … #Time_zone and set following in chrooted Arch environment, I always end up with bad time saved to my pc bios.
    ln -s /usr/share/zoneinfo/Europe/Prague /etc/localtime
    hwclock --systohc --localtime
    Before the symlink, 'date' prints correct local time - it doesn't know my time zone so it prints the correct time (thinking I'm GMT+0). I use Windows so it's stored in BIOS as local time ('hwclock' also correctly prints local time and not UTC).
    After the symlink, 'date' shows incorrect time - it shows my time zone but the actual displayed time is +2 hours from my local time (UTC+1 DST/CEST). It makes sense that 2 hours were added to the time because previously the time was printed as GMT+0.
    Single ntp sync in Arch or Windows fixes this time shift forever but it should be possible to prevent this, right?

    While I do agree with @ewaller that UTC is the "way to go", I think "Linux devs" should put a little more effort into supporting both local time and UTC setups
    One reason why I think this is important is for people who need to switch between booting a "locked down" Windows (for work, school, etc, where they have no / limited admin rights) and Arch.
    If you don't belong to this group of unfortunate people, you can try forcing Windows to use UTC for the hardware clock, no matter which time zone you're in: https://wiki.archlinux.org/index.php/Ti … in_Windows
    EDIT:
    Try this link for extra steps on newer Windows versions (see JumperPunk's answer, not the accepted one!): http://superuser.com/questions/494432/f … bios-clock
    (perhaps this should be condensed and added to the Wiki?)
    Last edited by ackalker (2014-05-12 14:57:24)

  • HT2470 how to set finder columns default to 'right size individually'?

    i despise having to hover/click everytime i search files. 
    where is the option hidden to turn-on my finder column auto-size???

    chances........ there's one for you! :-)
    to create a new UI template go to the navigator click on
    Providers tabs / Locally Built Providers / Shared Components / User Interface Templates
    Then Create New...  User Interface Template 
    Copy paste the following html/tpl code
    <HTML dir=#DIRECTION#>
    <HEAD>
    <TITLE>#TITLE#</TITLE>
    #PAGE.STYLE#
    #PAGE.BASE#
    </HEAD>
    <BODY leftMargin="0" rightMargin="0" topMargin="0" marginheight="0" marginwidth="0" class="PageBG">
    <!-- here you can set the page/table width -->
    <TABLE width="80%" align="center" border="0" cellspacing="0" cellpadding="0">
    <TR>
       <TD>
        <TABLE >
          <TR>
           <TD>
            <IMG SRC="#IMAGE_PREFIX#pobtrans.gif" BORDER="0" WIDTH="0" HEIGHT="4">
           </TD>
          </TR>
        </TABLE>
        #PAGE.SUBPAGELINKS#
        #BODY#
       </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>
    To use this UI TPL in your page group you have to
    1 edit the PG properties to allow the use of UI template
       (is under the Configure tab / Page Types and Template)
    2 then you have to modify the page prorties too
       Page proprties / Optional tab / User Interface Templates
    Et voila'
    Hope this clarifies
    Cheers
    Diego

  • Is there any way to remove timezone dropdown from calendar prompt

    We are using a different prompt to set timezone and I was evaluating to see if there is any way to remove timezone drop down from calendar prompt, User will input only time stamp.
    Appreciate your help.
    Srix

    Are you talking about the Time Remaining display on the side bar? The text for that field is in the Modify Text Labels... tool in the Theme Editor of Presenter. You can change it to whatever you want, but you may want to keep a record of what the default text labels are, as there is no restore to default option. The Elapsed Time field is what you would want to change. I have seen this modified to show no text, copyright information or other general info.

  • Looking for Script Exchange-2007: Import-Mailbox Calendar Folder on multiple mailboxes {Distribution Group}

    Hi,
    I'm looking for a PowerShell script which will import a Calendar events into student's mailbox (Calendar). Those students are located in a distribution group and I would like to target the distribution group; I'm trying to simulate what I want to achieve
    in the below code example, I would appreciate if anyone jump in and advise.
    $Users = Import-Csv C:\users.csv | ForEach-Object{Get-DistributionGroup -Identity SC-1213} | Import-Mailbox -Identity $Users -PSTFolderPath c:\Calendar.pst -IncludeFolders '\Calendar' -StartDate -EndDate
    Much appreciated..
    Hussain

    The logic doesn't work unless you are using StartDate and EndDate for the period when you change the item.  As I said above, StartDate and EndDate are not the times when the meeting starts and ends - they are the times that the item was either added
    or modified in the mailbox.  Your filter was trying to pull items that were in the future.
    And as I also said above, if you import a modified item, the original is
    not going to be updated.  You will have a duplicate meeting
    on the calendar.  You would have to remove the original
    and import the updated item if this was how you wished to manage the updates.  This is not nearly as effective as
    sending meeting requests and updating those meetings.
    For example, if we do things the way you are doing them, and we add a "Student Appreciation Bonfire" meeting to the calendar for April 12 at "The Quad", we would do the following:
    On February 1, you get information for the meeting that needs to be imported
    You create this new meeting in the PST calendar - "Student Appreciation Bonfire"; Date April 12, start 8:00 AM, end 12:00 noon; Location The Quad
    You import the PST into everyone's calendar
    You receive a note on March 12 saying the venue has changed to The River Beach, so you update this meeting in your PST
    Since there are other calendar items in the PST, you import the update using StartDate of March 12 and EndDate of March 13 - the date that you changed the item, not the date the item occurs
    At this point, all users have two meetings on their calendar - the original and the update
    If, instead of doing it this way, you create a Student Actvities Calendar mailbox, you would handle it this way:
    On February 1, you get information for the meeting that needs to be imported
    You create this new meeting in the Corporate calendar - "Student Appreciation Bonfire"; Date April 12, start 8:00 AM, end 12:00 noon; Location The Quad
    You invite everyone to the meeting
    You receive a note on March 12 saying the venue has changed to The River Beach, so you update this meeting in that calendar and send out the update
    At this point, all users have only the one meeting on their calendar - the update
    Using the PST as the source for the meetings would work only for items that
    will not be changed - holidays are a good example.

  • How to make the width of powershell script's output greater than 80 column?

    Hi,
    I am trying to remotely execute a powershell script through ssh, and I found the output of my script is only 80 width, a carriage-return and a line-feed are inserted after 79th column, and continue presenting the 80th value of each row onto another line.
    I want it greater than 80, such as 512.
    The code to print the output in my script is like:
    $allInfo | ConvertTo-Xml -as Stream -NoTypeInformation -Depth 1
    Any help will be really appreciated!

    But when I run the powershell script manually, I get the following error message, I do not know why, but anyway, my problem is resolved.
    Exception setting "BufferSize": "Cannot set the buffer size because the size specified is too large or too small.           
    Parameter name: value                                                                                                       
    Actual value was 512,25."                                                                                                   
    At C:\Users\qzhang\Documents\GetVM.ps1:30 char:16                                                                           
    + $Host.UI.RawUI. <<<< BufferSize = New-Object Management.Automation.Host.Size (512, 25)                                    
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException                                                    
        + FullyQualifiedErrorId : PropertyAssignmentException  
    Yeah, that's a good question.  I get the same thing here.  The longer solution the post covers which I've included below does work interactively, and looking at the differences it appears to be related to the buffer height.  My guess is when
    the existing console window already has more rows in the buffer than the 25 rows in height the command tries to define, this error occurs.
    if( $Host -and $Host.UI -and $Host.UI.RawUI ) {
    $rawUI = $Host.UI.RawUI
    $oldSize = $rawUI.BufferSize
    $typeName = $oldSize.GetType( ).FullName
    $newSize = New-Object $typeName (500, $oldSize.Height)
    $rawUI.BufferSize = $newSize

  • SOLVED: powershell script working on its own, access denied when called from a service

    Hi powershell experts,
    I'm using a powershell script, called by a service with serviceaccount PWSService, which gives an exception denied. This powershell script sets up a remote powershell connection(with a specific account), and runs some powershell scripts remotely on
    that server. 
    When I launch the powershell script manually, by opening the powershell console myself(with "run as" PWSService), the remote session starts and I'm able to succesfully run commands through it.
    The PWSService is local admin on the server.
    Is there any diffrence in behaviour when powershell scripts are started by a service or started as a "user"? Can someone shed a light on this?
    Thanks in advance,
    Robin
    MCTS, MCPD

    hi mjolinor,
    We use the following class for the service(Microsoft
    live@edu connector):
    http://msdn.microsoft.com/en-us/library/system.management.automation.runspaces.wsmanconnectioninfo%28v=vs.85%29.aspx
    I use Enter-PSSession to start the commands in de powershell console which works.
    MCPD

Maybe you are looking for

  • FM to read XML files from Application server in ECC5.0

    Hi All, We need to pick up an XML file from Application server/FTP server. The requirement is to parse the XML file and process it to create material master. SAP provides standard function modules to read XML files. Now we need to read the XML file c

  • Zen Style M300 & Android

    Hello Can any one suggest anything for me please, I have a Zen Style M300 which has Bluetooth on. I don't want my music on my Adnroid phone as it does not have much storage space, so wanted to know could I stream my music to my android phone via blue

  • BUG: Perforce Plugin having problems on JDev 10.1.3.0.4 (SU4) on Mac OS X

    I've downloaded the Perforce plugin, and try to connect to the Perforce server here. When I click Versioning > Connect to Perforce... first it takes a long time for the dialog box to open, next I fill in: - username - password - leave remember passwo

  • ICloud wont log in... Error message

    when i try to log into iCloud this error message comes up, "Icloud encountered a problem when trying to connect to the server". i have Tried different browsers, clearing cache, clearing  Cookies, different computers.....Help...

  • Saving DOM to *.xml using JAXP only !

    There are tons of question regarding this topic in the forum already. But i'm willing to run thru the DOM to write back into the file , the problem is how do i acces the first to lines like dtd declaration etc .. any cues?